code: def test_set_domain_invalid_global_domain(self):
      schema = schema_pb2.Schema()
      schema.feature.add(name="feature")
      schema.string_domain.add(name="domain1", value=["a", "b"])
      with self.assertRaisesRegex(
          ValueError, "Invalid global string domain"
      ):
          schema_util.set_domain(schema, "feature", "domain2")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  from absl.testing import absltest
  from absl.testing import parameterized
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import schema_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 24 for calling the SchemaUtilTest obj's underlying member method code with example usage: obj.test_set_domain_invalid_global_domain() without return types