code: def noise_from_string(psd_name, start_time, end_time, seed=0, low_frequency_cutoff=1.0):
      
      delta_f = 1.0 / FILTER_LENGTH
      flen = int(SAMPLE_RATE / delta_f) / 2 + 1
      psd = pycbc.psd.from_string(psd_name, flen, delta_f, low_frequency_cutoff)
      return colored_noise(psd, start_time, end_time,
                           seed=seed,
                           low_frequency_cutoff=low_frequency_cutoff)
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.
      start_time : int
          Start time in GPS seconds to generate noise
      end_time : int
          End time in GPS seconds to generate nosie
      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.