code: def generate_apidocs(*args):
      """Generate API docs automatically by trawling the available modules"""
      module_path = os.path.abspath(
          os.path.join(
              os.path.dirname(__file__), "..", "..", "monailabel"
          )
      )
      output_path = os.path.abspath(
          os.path.join(os.path.dirname(__file__), "apidocs")
      )
      apidoc_command_path = "sphinx-apidoc"
      if hasattr(sys, "real_prefix"):  # called from a virtualenv
          apidoc_command_path = os.path.join(
              sys.prefix, "bin", "sphinx-apidoc"
          )
          apidoc_command_path = os.path.abspath(apidoc_command_path)
      print(f"output_path {output_path}")
      print(f"module_path {module_path}")
      subprocess.check_call(
          [apidoc_command_path, "-e"]
          + ["-o", output_path]
          + [module_path]
          + [os.path.join(module_path, p) for p in exclude_patterns]
      )
  
file_path: MONAILabel/docs/source/conf.py
imports: import os
  import re
  import subprocess
  import sys
  from docutils.nodes import Text, reference
  from sphinx.application import Sphinx
  from sphinx.transforms import SphinxTransform
  import monailabel
label_desc: Use image node_id 1 for calling a global function with example usage: generate_apidocs() without return types