code: def load_metadata_from_file(filename):
      
      try:
          extension = os.path.splitext(filename)[1]
          return _metadata_loader[extension](filename)
      except KeyError:
          raise TypeError('Cannot read metadata from file %s, extension %s not '
                          'supported at this time' % (filename, extension))
docs: Load the plot related metadata saved in a file
  
      Parameters
      ----------
      filename: str
          Name of file load metadata from.
  
      Returns
      -------
      cp: ConfigParser
          A configparser object containing the metadata