code: def _read(self, **kwargs):
          
          if re.match("0|1.[01234]", version.openjpeg_version):
              msg = ("You must have a version of OpenJPEG at least as high as "
                     "1.5.0 before you can read JPEG2000 images with glymur.  "
                     "Your version is {version}")
              raise TypeError(msg.format(version=version.openjpeg_version))
  
          if version.openjpeg_version_tuple[0] < 2:
              img = self._read_openjpeg(**kwargs)
          else:
              img = self._read_openjp2(**kwargs)
          return img
docs: Read a JPEG 2000 image.
  
          Returns
          -------
          ndarray
              The image data.
  
          Raises
          ------
          RuntimeError
              if the proper version of the OpenJPEG library is not available