code: def return_hdr(self):
          
          subj_id = self.filename.stem  # use directory name as subject name
  
          start_time = _read_date(self.settings_xml)
  
          s_freq, channels = _read_openephys(self.openephys_file)
  
          # only use channels that are actually in the folder
          chan_name = []
          self.channels = []
          gain = []
          for chan in channels:
              channel_filename = (self.filename / chan['filename'])
              if channel_filename.exists():
                  chan_name.append(chan['name'])
                  self.channels.append(channel_filename)
                  gain.append(_check_header(channel_filename, s_freq))
  
              else:
                  lg.warning(f'could not find {chan["filename"]} in {self.filename}')
  
          self.gain = array(gain)
          n_blocks, n_samples = _read_n_samples(self.channels[0])
  
          self.blocks = ones(n_blocks, dtype='int') * BLK_LENGTH
  
          orig = {}
  
          return subj_id, start_time, s_freq, chan_name, n_samples, orig
docs: Return the header for further use.
  
          Returns
          -------
          subj_id : str
              subject identification code
          start_time : datetime
              start time of the dataset
          s_freq : float
              sampling frequency
          chan_name : list of str
              list of all the channels
          n_samples : int
              number of samples in the dataset
          orig : dict
              currently empty for open-ephys