code: def main(argv: Sequence[str]) -> None:
      if len(argv) > 1:
          raise app.UsageError("Too many command-line arguments.")
  
      proto = test_message_pb2.ManyFields(
          field_one=test_message_pb2.ManyFields(
              repeated_field=[
                  test_message_pb2.ManyFields(),
                  test_message_pb2.ManyFields(
                      string_field="inner_inner_string",
                      map_field_uint32={
                          324: "map_value_324",
                          543: "map_value_543",
                      },
                  ),
              ]
          ),
          map_field_int64={
              -1345: "map_value_-1345",
          },
          nested_map_bool={
              True: test_message_pb2.ManyFields(
                  string_field="string_true"
              ),
              False: test_message_pb2.ManyFields(
                  string_field="string_false"
              ),
          },
      )
      file_io.write_string_to_file(
          os.path.join(
              SPLITTER_TESTDATA_PATH.value, "many-field.pbtxt"
          ),
          str(proto),
      )
  
      ManyFieldSplitter(proto).write(
          os.path.join(SPLITTER_TESTDATA_PATH.value, "many-field")
      )
  
file_path: tensorflow-upstream/tensorflow/tools/proto_splitter/testdata/many_field_gen.py
imports: from collections.abc import Sequence
  import os
  from absl import app
  from absl import flags
  from tensorflow.python.lib.io import file_io
  from tensorflow.tools.proto_splitter import split
  from tensorflow.tools.proto_splitter.testdata import test_message_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: main(argv) without return types