code: def _add_pns_channel_info(chs, egi_info, ch_names):
      """Add info for PNS channels to channel info dict."""
      for i_ch, ch_name in enumerate(egi_info["pns_names"]):
          idx = ch_names.index(ch_name)
          ch_type = egi_info["pns_types"][i_ch]
          type_to_kind_map = {
              "ecg": FIFF.FIFFV_ECG_CH,
              "emg": FIFF.FIFFV_EMG_CH,
          }
          ch_kind = type_to_kind_map.get(ch_type, FIFF.FIFFV_BIO_CH)
          ch_unit = FIFF.FIFF_UNIT_V
          ch_cal = 1e-6
          if egi_info["pns_units"][i_ch] != "uV":
              ch_unit = FIFF.FIFF_UNIT_NONE
              ch_cal = 1.0
          chs[idx].update(
              cal=ch_cal,
              kind=ch_kind,
              coil_type=FIFF.FIFFV_COIL_NONE,
              unit=ch_unit,
          )
      return chs
  
imports: import datetime
  import math
  import os.path
  import re
  from collections import OrderedDict
  from pathlib import Path
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info, _ensure_meas_date_none_or_dt, create_info
  from ..._fiff.proj import setup_proj
  from ..._fiff.utils import _create_chs, _mult_cal_one
  from ...annotations import Annotations
  from ...channels.montage import make_dig_montage
  from ...evoked import EvokedArray
  from ...utils import _check_fname, _check_option, _soft_import, logger, verbose, warn
  from ..base import BaseRaw
  from .events import _combine_triggers, _read_events
  from .general import _block_r, _extract, _get_blocks, _get_ep_info, _get_gains, _get_signalfname
label_desc: Use image node_id 5 for calling a global function with example usage: _add_pns_channel_info(chs, egi_info, ch_names) and returns: chs