code: def is_key_present_in_state(state: AnalysisState, key: str):
      """
      Check if the nested key represented with dot notation (`a.b.c`) is present in the state
      Parameters
      ----------
      state: AnalysisState
          state to check the key in
      key: str
          the key to check for presence
  
  
      Returns
      -------
      `True` if the key is present
  
      """
      path = state
      for p in key.split("."):
          if p not in path:
              return False
          path = path[p]
      return True
  
file_path: autogluon/eda/src/autogluon/eda/state.py
imports: import logging
  from typing import Any
label_desc: Use image node_id 1 for calling a global function with example usage: is_key_present_in_state(state, key) and returns: True, False