code: def _contains_ch_type(info, ch_type):
      """Check whether a certain channel type is in an info object.
  
      Parameters
      ----------
      %(info_not_none)s
      ch_type : str
          the channel type to be checked for
  
      Returns
      -------
      has_ch_type : bool
          Whether the channel type is present or not.
      """
      _validate_type(ch_type, "str", "ch_type")
  
      meg_extras = list(_MEG_CH_TYPES_SPLIT)
      fnirs_extras = list(_FNIRS_CH_TYPES_SPLIT)
      et_extras = list(_EYETRACK_CH_TYPES_SPLIT)
      valid_channel_types = sorted(
          [key for key in _PICK_TYPES_KEYS if key != "meg"]
          + meg_extras
          + fnirs_extras
          + et_extras
      )
      _check_option("ch_type", ch_type, valid_channel_types)
      if info is None:
          raise ValueError(
              f'Cannot check for channels of type "{ch_type}" because info is None'
          )
      return any(
          ch_type == channel_type(info, ii)
          for ii in range(info["nchan"])
      )
  
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 18 for calling a global function with example usage: _contains_ch_type(info, ch_type) and returns: any