code: def gen_api_docs():
      """Generates API docs for the mediapipe package."""
      if hasattr(mp, "solutions"):
          del mp.solutions
  
      doc_generator = generate_lib.DocGenerator(
          root_title=PROJECT_FULL_NAME,
          py_modules=[(PROJECT_SHORT_NAME, mp)],
          base_dir=os.path.dirname(mp.__file__),
          code_url_prefix=_URL_PREFIX.value,
          search_hints=_SEARCH_HINTS.value,
          site_path=_SITE_PATH.value,
          callbacks=[],
      )
  
      doc_generator.build(_OUTPUT_DIR.value)
  
      print("Docs output to:", _OUTPUT_DIR.value)
  
imports: import os
  from absl import app
  from absl import flags
  from tensorflow_docs.api_generator import generate_lib
label_desc: Use image node_id 1 for calling a global function with example usage: gen_api_docs() without return types