code: def main(args):
      if args[1:]:
          raise ValueError("Unrecognized Command line args", args[1:])
  
      for obj in supress_docs_for:
          doc_controls.do_not_generate_docs(obj)
  
      for name, value in inspect.getmembers(tfdv):
          if inspect.ismodule(value):
              doc_controls.do_not_generate_docs(value)
  
      for name, value in inspect.getmembers(beam.PTransform):
          # This ensures that the methods of PTransform are not documented in any
          # derived classes.
          if name == "__init__":
              continue
          try:
              doc_controls.do_not_doc_inheritable(value)
          except (TypeError, AttributeError):
              pass
  
      doc_generator = generate_lib.DocGenerator(
          root_title="TensorFlow Data Validation",
          py_modules=[("tfdv", tfdv)],
          code_url_prefix=FLAGS.code_url_prefix,
          search_hints=FLAGS.search_hints,
          site_path=FLAGS.site_path,
          # local_definitions_filter ensures that shared modules are only
          # documented in the location that defines them, instead of every location
          # that imports them.
          callbacks=[
              public_api.local_definitions_filter,
              _filter_class_attributes,
          ],
      )
  
      return doc_generator.build(output_dir=FLAGS.output_dir)
  
file_path: data-validation/tensorflow_data_validation/tools/build_docs.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  from absl import app
  from absl import flags
  import apache_beam
  import tensorflow_data_validation
  from tensorflow_docs.api_generator import doc_controls
  from tensorflow_docs.api_generator import generate_lib
  from tensorflow_docs.api_generator import public_api
label_desc: Use image node_id 2 for calling a global function with example usage: main(args) and returns: doc_generator