code: def get_current_comp(info):
      """Get the current compensation in effect in the data."""
      comp = None
      first_comp = -1
      for k, chan in enumerate(info["chs"]):
          if chan["kind"] == FIFF.FIFFV_MEG_CH:
              comp = int(chan["coil_type"]) >> 16
              if first_comp < 0:
                  first_comp = comp
              elif comp != first_comp:
                  raise ValueError(
                      "Compensation is not set equally on "
                      "all MEG channels"
                  )
      return comp
  
imports: import numpy
  from ..utils import fill_doc
  from .constants import FIFF
label_desc: Use image node_id 1 for calling a global function with example usage: get_current_comp(info) and returns: comp