code: def _get_root(key: str) -> tuple[dict[str, Any], str]:
      path = key.split(".")
      cursor = _global_config
      for p in path[:-1]:
          cursor = cursor[p]
      return cursor, path[-1]
  
imports: from __future__ import annotations
  from contextlib import ContextDecorator, contextmanager
  import re
  from typing import TYPE_CHECKING, Any, Callable, Generic, NamedTuple, cast
  import warnings
  from pandas._typing import F, T
  from pandas.util._exceptions import find_stack_level
label_desc: Use image node_id 10 for calling a global function with example usage: _get_root(key) and returns: cursor,  path