docstr: Asserts that all chunk proto sizes are <= max_size.
docstr_tok: ["Asserts","that","all","chunk","proto","sizes","are","<","=","max_size","."]
code: def _assert_chunk_sizes(self, chunks, max_size):
      """Asserts that all chunk proto sizes are <= max_size."""
      for chunk in chunks:
          if isinstance(chunk, message.Message):
              self.assertLessEqual(chunk.ByteSize(), max_size)
  
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 3 for calling the GraphDefSplitterTest obj's underlying member method code with example usage: obj._assert_chunk_sizes(chunks, max_size) without return types