code: def noise_from_string(psd_name, length, delta_t, seed=None, low_frequency_cutoff=10.0):
      
      import pycbc.psd
  
      # We just need enough resolution to resolve lines
      delta_f = 1.0 / 8
      flen = int(.5 / delta_t / delta_f) + 1
      psd = pycbc.psd.from_string(psd_name, flen, delta_f, low_frequency_cutoff)
      return noise_from_psd(int(length), delta_t, psd, seed=seed)
docs: Create noise from an analytic PSD
  
      Return noise from the chosen PSD. Note that if unique noise is desired
      a unique seed should be provided.
  
      Parameters
      ----------
      psd_name : str
          Name of the analytic PSD to use.
      low_fr
      length : int
          The length of noise to generate in samples.
      delta_t : float
          The time step of the noise.
      seed : {None, int}
          The seed to generate the noise.
      low_frequency_cutof : {10.0, float}
          The low frequency cutoff to pass to the PSD generation.
  
      Returns
      --------
      noise : TimeSeries
          A TimeSeries containing gaussian noise colored by the given psd.