code: def test_schema_from_feature_spec_fails(
      self, feature_spec, error_msg, domain=None, error_class=ValueError
  ):
      with self.assertRaisesRegex(error_class, error_msg):
          schema_utils.schema_from_feature_spec(feature_spec, domain)
  
file_path: transform/tensorflow_transform/tf_metadata/schema_utils_test.py
imports: from absl.testing import parameterized
  from tensorflow_transform.tf_metadata import schema_utils_legacy
  from tensorflow_transform.tf_metadata import schema_utils_test_cases
  from tensorflow_transform.tf_metadata import schema_utils
  from google.protobuf import text_format
  import unittest
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 4 for calling the SchemaUtilsTest obj's underlying member method code with example usage: obj.test_schema_from_feature_spec_fails(feature_spec, error_msg, domain, error_class) without return types