code: def _subsampling_sanity_check(self):
          
          dxs = np.array(self.codestream.segment[1].xrsiz)
          dys = np.array(self.codestream.segment[1].yrsiz)
          if np.any(dxs - dxs[0]) or np.any(dys - dys[0]):
              msg = ("The read_bands method should be used with the subsampling "
                     "factors are different. "
                     "\n\n{siz_segment}")
              msg = msg.format(siz_segment=str(self.codestream.segment[1]))
              raise IOError(msg)
docs: Check for differing subsample factors.