Any sheriff or other officer having a discretion in summoning jurors who summons any person with intent to produce a result favorable to any party having a case in the court in which such person is summoned shall, on conviction, be imprisoned in the penitentiary for not less than two nor more than five years.