code: def testPackTag(self):
      field_number = 0xABC
      tag_type = 2
      self.assertEqual(
          (field_number << 3) | tag_type,
          wire_format.PackTag(field_number, tag_type),
      )
      PackTag = wire_format.PackTag
      # Number too high.
      self.assertRaises(message.EncodeError, PackTag, field_number, 6)
      # Number too low.
      self.assertRaises(message.EncodeError, PackTag, field_number, -1)
  
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 1 for calling the WireFormatTest obj's underlying member method code with example usage: obj.testPackTag() without return types