An officer who, having the custody of a witness committed because of his failure to furnish sureties, causes or permits him to be handcuffed to a person, held in custody, charged with or sentenced for crime, or to be transported within a city to or from any court or prison in a vehicle with such person, shall be punished by a fine of not more than twenty dollars.
Mass. Gen. Laws ch. 276, § 54