code: def export(self, filename, export_format='FieldTrip', **options):
          
          filename = Path(filename)
          filename.parent.mkdir(parents=True, exist_ok=True)
  
          export_format = export_format.lower()
          if export_format == 'edf':
              from .ioeeg import write_edf  # avoid circular import
              write_edf(self, filename, **options)
  
          elif export_format == 'fieldtrip':
              from .ioeeg import write_fieldtrip  # avoid circular import
              write_fieldtrip(self, filename)
  
          elif export_format == 'mnefiff':
  
              from .ioeeg import write_mnefiff
              write_mnefiff(self, filename)
  
          elif export_format == 'wonambi':
              from .ioeeg import write_wonambi
              write_wonambi(self, filename, **options)
  
          elif export_format == 'brainvision':
              from .ioeeg import write_brainvision
              write_brainvision(self, filename, **options)
  
          elif export_format == 'bids':
              from .ioeeg import write_bids
              write_bids(self, filename, **options)
  
          else:
              raise ValueError('Cannot export to ' + export_format)
docs: Export data in other formats.
  
          Parameters
          ----------
          filename : path to file
              file to write
          export_format : str, optional
              supported export format is currently FieldTrip, EDF, FIFF, Wonambi,
              BrainVision
  
          Notes
          -----
          'edf' takes an optional argument "physical_max", see write_edf.
  
          'wonambi' takes an optional argument "subj_id", see write_wonambi.
          wonambi format creates two files, one .won with the dataset info as json
          file and one .dat with the memmap recordings.
  
          'brainvision' takes an additional argument ("markers") which is a list
          of dictionaries with fields:
              "name" : str (name of the marker),
              "start" : float (start time in seconds)
              "end" : float (end time in seconds)
  
          'bids' has an optional argument "markers", like in 'brainvision'