docs: def sed(self, photon_energy, distance=1 * u.kpc, seed=None):
          """Spectral energy distribution at a given distance from the source
  
          Parameters
          ----------
          photon_energy : :class:`~astropy.units.Quantity` float or array
              Photon energy array.
  
          distance : :class:`~astropy.units.Quantity` float, optional
              Distance to the source. If set to 0, the intrinsic luminosity will
              be returned. Default is 1 kpc.
  
          seed : int, str or None
              Number or name of seed photon field for which the IC contribution
              is required. If set to None it will return the sum of all
              contributions (default).
          """
          sed = super(InverseCompton, self).sed(photon_energy, distance=distance)
  
          if seed is not None:
              if distance != 0:
                  out_unit = "erg/(cm2 s)"
              else:
                  out_unit = "erg/s"
  
              sed = (
                  self.flux(photon_energy, distance=distance, seed=seed)
                  * photon_energy ** 2.0
              ).to(out_unit)
  
          return sed