class_docstr: Subclass of :py:class:`monai.bundle.ConfigItem`, the `ConfigItem` represents an executable expression
  (execute based on ``eval()``, or import the module to the `globals` if it's an import statement).
  
  See also:
  
      - https://docs.python.org/3/library/functions.html#eval.
  
  For example:
  
  .. code-block:: python
  
      import monai
      from monai.bundle import ConfigExpression
  
      config = "$monai.__version__"
      expression = ConfigExpression(config, id="test", globals={"monai": monai})
      print(expression.evaluate())
  
  Args:
      config: content of a config item.
      id: name of current config item, defaults to empty string.
      globals: additional global context to evaluate the string.
class_docstr_tok: ["Subclass","of",":","py",":","class",":","`","monai.bundle.ConfigItem","`",",","the","`","ConfigItem","`","represents","an","executable","expression","(","execute","based","on","``","eval","(",")","``",",","or","import","the","module","to","the","`","globals","`","if","it","'s","an","import","statement",")",".","See","also",":","-","https",":","\/\/docs.python.org\/3\/library\/functions.html","#","eval",".","For","example",":","..","code-block",":",":","python","import","monai","from","monai.bundle","import","ConfigExpression","config","=","``","$","monai.__version__","''","expression","=","ConfigExpression","(","config",",","id=","''","test","''",",","globals=","{","``","monai","''",":","monai","}",")","print","(","expression.evaluate","(",")",")","Args",":","config",":","content","of","a","config","item",".","id",":","name","of","current","config","item",",","defaults","to","empty","string",".","globals",":","additional","global","context","to","evaluate","the","string","."]
docstr: Check whether the config is an import statement (a special case of expression).
  
  Args:
      config: input config content to check.
code: def is_import_statement(cls, config: dict | list | str) -> bool:
      """
      Check whether the config is an import statement (a special case of expression).
  
      Args:
          config: input config content to check.
      """
      if not cls.is_expression(config):
          return False
      if "import" not in config:
          return False
      return isinstance(
          first(
              ast.iter_child_nodes(
                  ast.parse(f"{config[len(cls.prefix) :]}")
              )
          ),
          (ast.Import, ast.ImportFrom),
      )
  
imports: from __future__ import annotations
  import ast
  import inspect
  import sys
  import warnings
  from abc import ABC, abstractmethod
  from collections.abc import Mapping, Sequence
  from importlib import import_module
  from pprint import pformat
  from typing import Any
  from monai.bundle.utils import EXPR_KEY
  from monai.utils import CompInitMode, ensure_tuple, first, instantiate, optional_import, run_debug, run_eval
label_desc: Use image node_id 5 for calling the ConfigExpression obj's underlying member method code with example usage: obj.is_import_statement(cls, config) and returns: isinstance, False, False