code: def main(argv: Sequence[str]) -> None:
      if len(argv) > 1:
          raise app.UsageError("Too many command-line arguments.")
  
      main_dir = os.path.join(
          SPLITTER_TESTDATA_PATH.value, "chunked_saved_model"
      )
      non_chunked_dir = os.path.join(main_dir, "non_chunked_model")
      generate_non_chunked_model(non_chunked_dir)
      chunked_dir = os.path.join(main_dir, "chunked_model")
      generate_chunked_model(non_chunked_dir, chunked_dir)
  
file_path: tensorflow-upstream/tensorflow/cc/saved_model/testdata/generate_chunked_models.py
imports: from collections.abc import Sequence
  import os
  from absl import app
  from absl import flags
  import numpy
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.module import module
  from tensorflow.python.saved_model import loader_impl
  from tensorflow.python.saved_model import save
  from tensorflow.python.saved_model import save_options
  from tensorflow.python.util import compat
  from tensorflow.tools.proto_splitter import constants
  from tensorflow.tools.proto_splitter.python import saved_model
label_desc: Use image node_id 3 for calling a global function with example usage: main(argv) without return types