code: def testDefineOp_PropertyDefaultViolatesType(self):
      with self.assertRaises(TypeError):
  
          class BadProperty(
              resolver_op.ResolverOp
          ):  # pylint: disable=unused-variable
              str_prop = resolver_op.Property(type=str, default=42)
  
imports: import copy
  from typing import Optional, Mapping, Set
  import tensorflow
  from tfx.dsl.input_resolution import resolver_op
  import tfx.types
  from tfx.types import standard_artifacts
label_desc: Use image node_id 1 for calling the ResolverOpTest obj's underlying member method code with example usage: obj.testDefineOp_PropertyDefaultViolatesType() without return types