code: def _get_root(key):
      path = key.split(".")
      cursor = _global_config
      for p in path[:-1]:
          cursor = cursor[p]
      return cursor, path[-1]
  
imports: from collections import namedtuple
  from contextlib import contextmanager
  import re
  import warnings
  import pandas.compat
  from pandas.compat import lmap, map, u
label_desc: Use image node_id 10 for calling a global function with example usage: _get_root(key) and returns: cursor,  path