code: def ascent():
      """
      Get an 8-bit grayscale bit-depth, 512 x 512 derived image for easy
      use in demos.
  
      The image is derived from accent-to-the-top.jpg at
      http://www.public-domain-image.com/people-public-domain-images-pictures/
  
      Parameters
      ----------
      None
  
      Returns
      -------
      ascent : ndarray
         convenient image to use for testing and demonstration
  
      Examples
      --------
      >>> import scipy.datasets
      >>> ascent = scipy.datasets.ascent()
      >>> ascent.shape
      (512, 512)
      >>> ascent.max()
      255
  
      >>> import matplotlib.pyplot as plt
      >>> plt.gray()
      >>> plt.imshow(ascent)
      >>> plt.show()
  
      """
      import pickle
  
      # The file will be downloaded automatically the first time this is run,
      # returning the path to the downloaded file. Afterwards, Pooch finds
      # it in the local cache and doesn't repeat the download.
      fname = fetch_data("ascent.dat")
      # Now we just need to load it with our standard Python tools.
      with open(fname, "rb") as f:
          ascent = array(pickle.load(f))
      return ascent
  
imports: from numpy import array, frombuffer, load
  from ._registry import registry, registry_urls
label_desc: Use image node_id 2 for calling a global function with example usage: ascent() and returns: ascent