code: def _map_ch_to_type(ch_name):
      ch_type_pattern = OrderedDict(
          [
              ("stim", ("Mark",)),
              ("misc", ("DC", "NA", "Z", "$")),
              ("bio", ("X",)),
          ]
      )
      for key, kinds in ch_type_pattern.items():
          if any(kind in ch_name for kind in kinds):
              return key
      return "eeg"
  
imports: from collections import OrderedDict
  from datetime import datetime, timezone
  from pathlib import Path
  import numpy
  from ..._fiff.meas_info import create_info
  from ..._fiff.utils import _mult_cal_one
  from ...annotations import Annotations
  from ...utils import _check_fname, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
label_desc: Use image node_id 7 for calling a global function with example usage: _map_ch_to_type(ch_name) and returns: str, key