code: def imread(filename, *args, **kwargs):
      
      try:
          netpbm = NetpbmFile(filename)
          image = netpbm.asarray()
      finally:
          netpbm.close()
      return image
docs: Return image data from Netpbm file as numpy array.
  
      `args` and `kwargs` are arguments to NetpbmFile.asarray().
  
      Examples
      --------
      >>> image = imread('_tmp.pgm')