code: def _parse_precinct_size(spcod):
      
      spcod = np.frombuffer(spcod, dtype=np.uint8)
      precinct_size = []
      for item in spcod:
          ep2 = (item & 0xF0) >> 4
          ep1 = item & 0x0F
          precinct_size.append((2 ** ep1, 2 ** ep2))
      return tuple(precinct_size)
docs: Compute precinct size from SPcod or SPcoc.