code: def test_get_field_tag_invalid(self):
      proto = test_message_pb2.ManyFields()
      with self.assertRaisesRegex(
          KeyError, "Unable to find field 'not_a_field'"
      ):
          util.get_field_tag(proto, ["field_one", "not_a_field"])
      with self.assertRaisesRegex(
          KeyError, "Unable to find field number 10000"
      ):
          util.get_field_tag(proto, [1, 10000])
      with self.assertRaisesRegex(
          ValueError, "Unable to find fields.*in proto"
      ):
          util.get_field_tag(proto, ["string_field", 1])
  
file_path: tensorflow-upstream/tensorflow/tools/proto_splitter/util_test.py
imports: from typing import Iterable
  from tensorflow.python.platform import test
  from tensorflow.tools.proto_splitter import util
  from tensorflow.tools.proto_splitter.testdata import test_message_pb2
label_desc: Use image node_id 3 for calling the UtilTest obj's underlying member method code with example usage: obj.test_get_field_tag_invalid() without return types