code: def trial_tool_import_patch(*args, **kwargs):
      """Insert dummy trial tool variable to ensure trial_tool can be imported.
      See nni/tools/trial_tool/constants.py
      """
      os.environ.update(
          {
              "NNI_OUTPUT_DIR": "/tmp",
              "NNI_PLATFORM": "unittest",
              "NNI_SYS_DIR": "/tmp",
              "NNI_TRIAL_JOB_ID": "dummy",
              "NNI_EXP_ID": "dummy",
              "MULTI_PHASE": "dummy",
          }
      )
  
file_path: nni/docs/extension/patch_autodoc.py
imports: import inspect
  import os
  from typing import List, Tuple, List
  import sphinx
  from docutils import nodes
  from docutils.nodes import Node
label_desc: Use image node_id 2 for calling a global function with example usage: trial_tool_import_patch() without return types