The county supervisors and governing bodies of the respective counties shall provide in the jails or places of confinement where prisoners are committed for keeping or sentenced to a term of imprisonment separate cells, rooms or places in which shall be confined all prisoners who may be committed for keeping or sentenced to a term of imprisonment who are affected with tuberculosis.