code: def run_apidoc(_):
      from sphinx.ext.apidoc import main
      import os
      import sys
  
      sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
      cur_dir = os.path.abspath(os.path.dirname(__file__))
      src_dir = os.path.join(cur_dir, "source")
      module = os.path.join(cur_dir, "..", "datmo")
      main(
          [
              "-e",
              "-f",
              "-o",
              src_dir,
              module,
              os.path.join(module, "core"),
              os.path.join(module, "tests"),
              os.path.join(module, "cli", "command"),
              os.path.join(module, "cli", "driver"),
          ]
      )
  
imports: import os
  import sys
  from recommonmark.transform import AutoStructify
label_desc: Use image node_id 2 for calling a global function with example usage: run_apidoc(_) without return types