code: def _get_eeg_calibration_info(filepath, egi_info):
      """Calculate calibration info for EEG channels."""
      gains = _get_gains(op.join(filepath, egi_info["info_fname"]))
      if egi_info["value_range"] != 0 and egi_info["bits"] != 0:
          cals = [
              egi_info["value_range"] / 2 ** egi_info["bits"]
          ] * len(egi_info["chan_type"])
      else:
          cal_scales = {"uV": 1e-6, "V": 1}
          cals = [cal_scales[t] for t in egi_info["chan_unit"]]
      if "gcal" in gains:
          cals *= gains["gcal"]
      return cals
  
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 3 for calling a global function with example usage: _get_eeg_calibration_info(filepath, egi_info) and returns: cals