code: def split_lots_nodes(path: str, export_files: Sequence[str]):
      """GraphDef with lots of nodes."""
      # The actual sizes in the generated graph has a slight deviation, but are
      # between [90, 100] (tested in testMakeGraphDef with atol=5).
      #    Expected Chunks (Max Size = 500)
      #    -----------------------------
      #       Chunk #: Contents
      #    -----------------------------
      #       0: GraphDef  # (nodes [0:5])
      #    -----------------------------
      #       1: GraphDef  # (nodes [5:10])
      #    -----------------------------
      #       2: GraphDef  # (nodes [10:15])
      #    -----------------------------
      #       3: ChunkedMessage
      #    -----------------------------
      graph_def = test_util.make_graph_def_with_constant_nodes(
          LOTS_NODES_SIZES
      )
      _split_and_write(path, graph_def, 500, export_files)
  
file_path: tensorflow-upstream/tensorflow/tools/proto_splitter/testdata/split_graph_def_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.framework import graph_pb2
  from tensorflow.python.lib.io import file_io
  from tensorflow.tools.proto_splitter import constants
  from tensorflow.tools.proto_splitter import split_graph_def
  from tensorflow.tools.proto_splitter.python import test_util
label_desc: Use image node_id 2 for calling a global function with example usage: split_lots_nodes(path, export_files) without return types