code: def main(argv: Sequence[str]) -> None:
      if not _OUTPUT_DIR.value or not _OUTPUT_FILES.value:
          raise app.UsageError(
              "--output_dir and --output_files are required"
          )
  
      if _PROXY_MODULE_ROOT.value:
          generate_proxy_api_files(
              _OUTPUT_FILES.value,
              _PROXY_MODULE_ROOT.value,
              _OUTPUT_DIR.value,
          )
          return
  
      output_files = [os.path.normpath(f) for f in _OUTPUT_FILES.value]
  
      for out_file in output_files:
          with open(out_file, "w") as f:
              f.write("")
  
      gen_public_api(
          _OUTPUT_DIR.value,
          _OUTPUT_PACKAGE.value,
          _ROOT_INIT_TEMPLATE.value,
          _API_VERSION.value,
          [int(v) for v in _COMPAT_API_VERSIONS.value],
          _COMPAT_INIT_TEMPLATES.value,
          _USE_LAZY_LOADING.value,
          _FILE_PREFIXES_TO_STRIP.value,
          argv[1:],
          _PACKAGES_TO_IGNORE.value,
          _MODULE_PREFIX.value,
          _ROOT_FILE_PATH.value,
          set(output_files),
      )
  
imports: import collections
  from collections.abc import Mapping, Sequence, Set
  import dataclasses
  import os
  from typing import Optional
  from absl import app
  from absl import flags
  from tensorflow.python.tools.api.generator2.shared import exported_api
label_desc: Use image node_id 12 for calling a global function with example usage: main(argv) without return types