code: def generate_apidocs(*args):
      """Generate API docs automatically by trawling the available modules"""
  
      import pandas as pd
      from monai.bundle.properties import (
          TrainProperties,
          InferProperties,
          MetaProperties,
      )
  
      csv_file = os.path.join(
          os.path.dirname(__file__), "train_properties.csv"
      )  # used in mb_properties.rst
      pd.DataFrame.from_dict(TrainProperties, orient="index").iloc[
          :, :3
      ].to_csv(csv_file)
      csv_file = os.path.join(
          os.path.dirname(__file__), "infer_properties.csv"
      )
      pd.DataFrame.from_dict(InferProperties, orient="index").iloc[
          :, :3
      ].to_csv(csv_file)
      csv_file = os.path.join(
          os.path.dirname(__file__), "meta_properties.csv"
      )
      pd.DataFrame.from_dict(MetaProperties, orient="index").iloc[
          :, :3
      ].to_csv(csv_file)
  
      module_path = os.path.abspath(
          os.path.join(
              os.path.dirname(__file__), os.pardir, os.pardir, "monai"
          )
      )
      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]
      )
  
imports: import os
  import subprocess
  import sys
  import monai
label_desc: Use image node_id 1 for calling a global function with example usage: generate_apidocs() without return types