code: def testProvideClass_UnprovidedDependency(self):
      class Foo:
          def __init__(self, x: int):
              self.x = x
  
      mod = module.DependencyModule()
      mod.provide_class(Foo)
  
      with self.assertRaises(errors.NotProvidedError):
          mod.get(ANY_NAME, Foo)
  
imports: import dataclasses
  from typing import Optional, Union
  import tensorflow
  from tfx.utils.di import errors
  from tfx.utils.di import module
label_desc: Use image node_id 11 for calling the ModuleTest obj's underlying member method code with example usage: obj.testProvideClass_UnprovidedDependency() without return types