code: def verify_psd_options(opt, parser):
      
      try:
          psd_estimation = opt.psd_estimation is not None
      except AttributeError:
          psd_estimation = False
  
      for opt_group in ensure_one_opt_groups:
          ensure_one_opt(opt, parser, opt_group)
  
      if psd_estimation:
          required_opts(opt, parser,
                        ['--psd-segment-stride', '--psd-segment-length'],
                        required_by = "--psd-estimation")
docs: Parses the CLI options and verifies that they are consistent and
      reasonable.
  
      Parameters
      ----------
      opt : object
          Result of parsing the CLI with OptionParser, or any object with the
          required attributes (psd_model, psd_file, asd_file, psd_estimation,
          psd_segment_length, psd_segment_stride, psd_inverse_length, psd_output).
      parser : object
          OptionParser instance.