code: def _remove_missing_channels_from_trial(trial, missing_chan_idx):
      if isinstance(trial, list):
          for idx_trial in range(len(trial)):
              trial[idx_trial] = _remove_missing_channels_from_trial(
                  trial[idx_trial], missing_chan_idx
              )
      elif isinstance(trial, np.ndarray):
          if trial.ndim == 2:
              trial = np.delete(trial, missing_chan_idx, axis=0)
      else:
          raise ValueError(
              '"trial" field of the FieldTrip structure '
              "has an unknown format."
          )
  
      return trial
  
file_path: mne-python/mne/io/fieldtrip/utils.py
imports: import numpy
  from ..._fiff._digitization import DigPoint, _ensure_fiducials_head
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import create_info
  from ..._fiff.pick import pick_info
  from ...transforms import rotation3d_align_z_axis
  from ...utils import _check_pandas_installed, warn
label_desc: Use image node_id 3 for calling a global function with example usage: _remove_missing_channels_from_trial(trial, missing_chan_idx) and returns: trial