code: def return_hdr(self):
          
          subj_id = self.task.subject
  
          sampling_freq = set(self.task.channels.get(map_lambda=lambda x: x['sampling_frequency']))
          if len(sampling_freq) > 1:
              raise ValueError('Multiple sampling frequencies not supported')
  
          s_freq = float(next(iter(sampling_freq)))
          chan_name = self.task.channels.get(map_lambda=lambda x: x['name'])
          self.chan_name = array(chan_name)
  
          # read these values directly from dataset
          orig = self.baseformat.header
          start_time = orig['start_time']
          n_samples = orig['n_samples']
  
          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
              additional information taken directly from the header