class_docstr: Simple backend dispatch for collection-creation functions
class_docstr_tok: ["Simple","backend","dispatch","for","collection-creation","functions"]
code: def __init__(
      self,
      module_name: str,
      default: str,
      entrypoint_class: type[BackendEntrypointType],
      name: str | None = None,
  ):
      self._lookup = {}
      self._module_name = module_name
      self._config_field = f"{module_name}.backend"
      self._default = default
      self._entrypoint_class = entrypoint_class
      if name:
          self.__name__ = name
  
file_path: dask/dask/backends.py
imports: from __future__ import annotations
  from collections.abc import Callable
  from functools import lru_cache, wraps
  from typing import TYPE_CHECKING, Generic, TypeVar
  import importlib_metadata
  from dask import config
  from dask.utils import funcname
label_desc: Use image node_id 1 to create a new CreationDispatch object from inherited base classes: Generic with example: obj = CreationDispatch(module_name, default, entrypoint_class, name)