code: def main(argv: Sequence[str]) -> None:
      if len(argv) > 1:
          raise app.UsageError("Too many command-line arguments.")
  
      if "all" in EXPORT_FILES.value:
          export_files = ["pb", "pbtxt", "cpb"]
      else:
          export_files = EXPORT_FILES.value
  
      if "all" in SAVED_MODEL_TYPES.value:
          saved_model_types = VALID_SAVED_MODEL_TYPES.keys()
      else:
          saved_model_types = SAVED_MODEL_TYPES.value
  
      for v in saved_model_types:
          if v not in VALID_SAVED_MODEL_TYPES:
              raise ValueError(
                  "Invalid flag passed to `saved_model_type`: "
                  f"{v}\nValid saved model types:"
                  f" {ALL_SAVED_MODEL_TYPES}"
              )
  
          logging.info("Generating saved model %s", v)
          f = VALID_SAVED_MODEL_TYPES[v]
          f(os.path.join(SPLITTER_TESTDATA_PATH.value, v), export_files)
  
file_path: tensorflow/tensorflow/tools/proto_splitter/testdata/split_saved_model_gen.py
imports: from collections.abc import Sequence
  import os
  from absl import app
  from absl import flags
  from absl import logging
  from tensorflow.core.protobuf import saved_model_pb2
  from tensorflow.python.lib.io import file_io
  from tensorflow.tools.proto_splitter import constants
  from tensorflow.tools.proto_splitter.python import saved_model
  from tensorflow.tools.proto_splitter.python import test_util
label_desc: Use image node_id 3 for calling a global function with example usage: main(argv) without return types