code: def get_epochs(system):
      """Find, load and process the epoched data."""
      cfg_local = get_cfg_local(system)
      raw_data = get_raw_data(system)
  
      if cfg_local["eventtype"] in raw_data.ch_names:
          stim_channel = cfg_local["eventtype"]
      else:
          stim_channel = "STI 014"
  
      if system == "CNT":
          events, event_id = mne.events_from_annotations(raw_data)
          events[:, 0] = events[:, 0] + 1
      else:
          events = mne.find_events(
              raw_data, stim_channel=stim_channel, shortest_event=1
          )
  
          if isinstance(cfg_local["eventvalue"], np.ndarray):
              event_id = list(cfg_local["eventvalue"].astype("int"))
          else:
              event_id = [int(cfg_local["eventvalue"])]
  
          event_id = [id for id in event_id if id in events[:, 2]]
  
      epochs = mne.Epochs(
          raw_data,
          events=events,
          event_id=event_id,
          tmin=-cfg_local["prestim"],
          tmax=cfg_local["poststim"],
          baseline=None,
      )
  
      return epochs
  
file_path: mne-python/mne/io/fieldtrip/tests/helpers.py
imports: import os
  from functools import partial
  import numpy
  import mne
  from mne.utils import object_diff
label_desc: Use image node_id 8 for calling a global function with example usage: get_epochs(system) and returns: epochs