code: def _triage_meg_pick(ch, meg):
      """Triage an MEG pick type."""
      if meg is True:
          return True
      elif ch["unit"] == FIFF.FIFF_UNIT_T_M:
          if meg == "grad":
              return True
          elif meg == "planar1" and ch["ch_name"].endswith("2"):
              return True
          elif meg == "planar2" and ch["ch_name"].endswith("3"):
              return True
      elif meg == "mag" and ch["unit"] == FIFF.FIFF_UNIT_T:
          return True
      return False
  
imports: import re
  from copy import deepcopy
  import numpy
  from ..utils import _check_option, _ensure_int, _validate_type, fill_doc, logger, verbose, warn
  from .constants import FIFF
label_desc: Use image node_id 5 for calling a global function with example usage: _triage_meg_pick(ch, meg) and returns: False, True, True, True, True, True