class_docstr: Module that holds a set of dependency providers.
class_docstr_tok: ["Module","that","holds","a","set","of","dependency","providers","."]
code: def provide_named_class(
      self, name: str, cls: type[Any], *, singleton: bool = False
  ) -> None:
      provider = providers.NamedClassProvider(name, cls)
      if singleton:
          provider = providers.SingletonProvider(provider)
      self.add_provider(provider)
  
file_path: tfx/tfx/utils/di/module.py
imports: import inspect
  from typing import Any, Callable, Optional, TypeVar
  from tfx.utils import pure_typing_utils
  from tfx.utils.di import errors
  from tfx.utils.di import providers
label_desc: Use image node_id 5 for calling the DependencyModule obj's underlying member method code with example usage: obj.provide_named_class(name, cls) without return types