code: def imread(
      uri,
      *,
      index=None,
      plugin=None,
      extension=None,
      format_hint=None,
      **kwargs,
  ):
      """Read an ndimage from a URI.
  
      Opens the given URI and reads an ndimage from it. The exact behavior
      depends on both the file type and plugin used to open the file. To learn
      about the exact behavior, check the documentation of the relevant plugin.
      Typically, imread attempts to read all data stored in the URI.
  
      Parameters
      ----------
      uri : {str, pathlib.Path, bytes, file}
          The resource to load the image from, e.g. a filename, pathlib.Path,
          http address or file object, see the docs for more info.
      index : {int, Ellipsis, None}
          If the ImageResource contains multiple ndimages, and index is an
          integer, select the index-th ndimage from among them and return it. If
          index is an ellipsis (...), read all ndimages in the file and stack them
          along a new batch dimension. If index is None, let the plugin decide.
      plugin : {str, None}
          The plugin to use. If set to None (default) imread will perform a
          search for a matching plugin. If not None, this takes priority over
          the provided format hint  (if present).
      extension : str
          If not None, treat the provided ImageResource as if it had the given
          extension. This affects the order in which backends are considered.
      format_hint : str
          Deprecated. Use `extension` instead.
      **kwargs :
          Additional keyword arguments will be passed to the plugin's read call.
  
      Returns
      -------
      image : ndimage
          The ndimage located at the given URI.
      """
  
      plugin_kwargs = {
          "legacy_mode": False,
          "plugin": plugin,
          "format_hint": format_hint,
          "extension": extension,
      }
  
      call_kwargs = kwargs
      if index is not None:
          call_kwargs["index"] = index
  
      with imopen(uri, "r", **plugin_kwargs) as img_file:
          return np.asarray(img_file.read(**call_kwargs))
  
imports: import numpy
  from .core.imopen import imopen
label_desc: Use image node_id 1 for calling a global function with example usage: imread(uri) and returns: np