code: def _check_all_same_channel_names(instances):
      """Check if a collection of instances all have the same channels."""
      ch_names = instances[0].info["ch_names"]
      for inst in instances:
          if ch_names != inst.info["ch_names"]:
              return False
      return True
  
imports: import numbers
  import operator
  import os
  import re
  from builtins import input
  from difflib import get_close_matches
  from importlib import import_module
  from pathlib import Path
  import numpy
  from ..defaults import HEAD_SIZE_DEFAULT, _handle_default
  from ..fixes import _compare_version, _median_complex
  from ._logging import _record_warnings, _verbose_safe_false, logger, verbose, warn
label_desc: Use image node_id 38 for calling a global function with example usage: _check_all_same_channel_names(instances) and returns: True, False