code: def testProvideNamedClass_NotFoundIfNameMismatch(self):
      class Foo:
          pass
  
      mod = module.DependencyModule()
      mod.provide_named_class("foo", Foo)
      with self.assertRaises(errors.NotProvidedError):
          mod.get("bar", 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 18 for calling the ModuleTest obj's underlying member method code with example usage: obj.testProvideNamedClass_NotFoundIfNameMismatch() without return types