code: def _check_dupes_odict(ch_names, pos):
      """Warn if there are duplicates, then turn to ordered dict."""
      ch_names = list(ch_names)
      dups = OrderedDict(
          (ch_name, ch_names.count(ch_name)) for ch_name in ch_names
      )
      dups = OrderedDict(
          (ch_name, count)
          for ch_name, count in dups.items()
          if count > 1
      )
      n = len(dups)
      if n:
          dups = ", ".join(
              f"{ch_name} ({count})" for ch_name, count in dups.items()
          )
          warn(
              f"Duplicate channel position{_pl(n)} found, the last will be "
              f"used for {dups}"
          )
      return OrderedDict(zip(ch_names, pos))
  
imports: import csv
  import os.path
  from collections import OrderedDict
  from functools import partial
  import numpy
  from .._freesurfer import get_mni_fiducials
  from ..transforms import _sph_to_cart
  from ..utils import _pl, _soft_import, warn
  from .None import __file__
  from .montage import make_dig_montage
label_desc: Use image node_id 10 for calling a global function with example usage: _check_dupes_odict(ch_names, pos) and returns: OrderedDict