code: def NumericByteSizeTestHelper(
      self, byte_size_fn, value, expected_value_size
  ):
      # Use field numbers that cause various byte sizes for the tag information.
      for field_number, tag_bytes in (
          (15, 1),
          (16, 2),
          (2047, 2),
          (2048, 3),
      ):
          expected_size = expected_value_size + tag_bytes
          actual_size = byte_size_fn(field_number, value)
          self.assertEqual(
              expected_size,
              actual_size,
              "byte_size_fn: %s, field_number: %d, value: %r\n"
              "Expected: %d, Actual: %d"
              % (
                  byte_size_fn,
                  field_number,
                  value,
                  expected_size,
                  actual_size,
              ),
          )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/protobuf/python/google/protobuf/internal/wire_format_test.py
imports: from google.protobuf import message
  from google.protobuf.internal import wire_format
label_desc: Use image node_id 5 for calling the WireFormatTest obj's underlying member method code with example usage: obj.NumericByteSizeTestHelper(byte_size_fn, value, expected_value_size) without return types