code: def build_from_energy_dict(cls, ebin_name, input_dict):
          
          psf_types = input_dict.pop('psf_types')
          output_list = []
          for psf_type, val_dict in sorted(psf_types.items()):
              fulldict = input_dict.copy()
              fulldict.update(val_dict)
              fulldict['evtype_name'] = psf_type
              fulldict['ebin_name'] = ebin_name
              component = cls(**fulldict)
              output_list += [component]
          return output_list
docs: Build a list of components from a dictionary for a single energy range