code: def testLargeConstant(self):
      sizes = [50, 50, 1000, 50, 1000]
      max_size = 500
      constants.debug_set_max_size(max_size)
  
      #    Expected Chunks (Max Size = 500)
      #    -----------------------------
      #       Chunk #: Contents
      #    -----------------------------
      #       0: GraphDef
      #    -----------------------------
      #       1: GraphDef.nodes[2].attr["value"].tensor.tensor_content
      #    -----------------------------
      #       2: GraphDef.nodes[4].attr["value"].tensor.tensor_content
      #    -----------------------------
  
      graph_def = self._make_graph_def_with_constant_nodes(sizes)
      s = split_graph_def.GraphDefSplitter(self._copy_graph(graph_def))
      chunks, chunked_message = s.split()
      self.assertLen(chunks, 3)
      self._assert_chunk_sizes(chunks, max_size)
  
      self.assertEqual(
          graph_def.node[4].attr["value"].tensor.tensor_content,
          chunks[2],
      )
      self.assertEqual(
          graph_def.node[2].attr["value"].tensor.tensor_content,
          chunks[1],
      )
  
      # Check the ChunkedMessage proto.
      self.assertLen(chunked_message.chunked_fields, 2)
      self.assertEqual(
          1, chunked_message.chunked_fields[0].message.chunk_index
      )
      self.assertEqual(
          2, chunked_message.chunked_fields[1].message.chunk_index
      )
      self._assert_field_tags(
          util.get_field_tag(
              graph_def,
              ["node", 2, "attr", "value", "tensor", "tensor_content"],
          ),
          chunked_message.chunked_fields[0].field_tag,
      )
      self._assert_field_tags(
          util.get_field_tag(
              graph_def,
              ["node", 4, "attr", "value", "tensor", "tensor_content"],
          ),
          chunked_message.chunked_fields[1].field_tag,
      )
  
imports: import itertools
  from google.protobuf import message
  from google.protobuf import text_format
  from tensorflow.core.framework import function_pb2
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python.platform import test
  from tensorflow.tools.proto_splitter import chunk_pb2
  from tensorflow.tools.proto_splitter import constants
  from tensorflow.tools.proto_splitter import split_graph_def
  from tensorflow.tools.proto_splitter import util
  from tensorflow.tools.proto_splitter.python import test_util
label_desc: Use image node_id 6 for calling the GraphDefSplitterTest obj's underlying member method code with example usage: obj.testLargeConstant() without return types