code: def gen_api_docs():
      """Generates api docs for the tensorflow docs package."""
      output_dir = FLAGS.output_dir
  
      _hide_layer_and_module_methods()
      doc_generator = generate_lib.DocGenerator(
          root_title=PROJECT_FULL_NAME,
          py_modules=[(PROJECT_SHORT_NAME, tf_privacy)],
          base_dir=os.path.dirname(tf_privacy.__file__),
          code_url_prefix=FLAGS.code_url_prefix,
          site_path=FLAGS.site_path,
          search_hints=FLAGS.search_hints,
          # This callback cleans up a lot of aliases caused by internal imports.
          callbacks=[public_api.explicit_package_contents_filter],
      )
  
      doc_generator.build(output_dir)
      print("Output docs to: ", output_dir)
  
file_path: privacy/g3doc/build_docs.py
imports: import os
  from absl import app
  from absl import flags
  import tensorflow
  from tensorflow_docs.api_generator import doc_controls
  from tensorflow_docs.api_generator import generate_lib
  from tensorflow_docs.api_generator import public_api
  import tensorflow_privacy
label_desc: Use image node_id 2 for calling a global function with example usage: gen_api_docs() without return types