code: def load_spectrum(filename):
      
      import f311
  
      f = load_with_classes(filename, f311.classes_sp())
      if f:
          return f.spectrum
      return None
docs: Attempts to load spectrum as one of the supported types.
  
      Returns:
          a Spectrum, or None