code: def build_docs():
      """Build api docs for tensorflow_text."""
      _hide_layer_and_module_methods()
      del text.keras  # keras is empty.
  
      doc_generator = generate_lib.DocGenerator(
          root_title="TensorFlow Text",
          py_modules=[("text", text)],
          base_dir=os.path.dirname(text.__file__),
          search_hints=True,
          code_url_prefix=FLAGS.code_url_prefix,
          site_path="text/api_docs/python",
          callbacks=[public_api.explicit_package_contents_filter],
      )
      doc_generator.build(FLAGS.output_dir)
  
file_path: text/oss_scripts/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_text
label_desc: Use image node_id 2 for calling a global function with example usage: build_docs() without return types