code: def testResolverDefinition_BadStrategyClass(self):
      class NotAStrategy:
          pass
  
      with self.assertRaisesRegex(
          TypeError, "strategy_class should be ResolverStrategy"
      ):
          resolver.Resolver(strategy_class=NotAStrategy)
  
imports: import tensorflow
  from tfx import types
  from tfx.dsl.components.common import resolver
  from tfx.dsl.input_resolution import canned_resolver_functions
  from tfx.dsl.input_resolution.strategies import latest_artifact_strategy
  from tfx.orchestration import data_types
  from tfx.orchestration import metadata
  from tfx.types import channel
  from tfx.types import standard_artifacts
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 4 for calling the ResolverTest obj's underlying member method code with example usage: obj.testResolverDefinition_BadStrategyClass() without return types