class_docstr: Simple backend dispatch for collection-creation functions
class_docstr_tok: ["Simple","backend","dispatch","for","collection-creation","functions"]
docstr: Register a target class for a specific array-backend label
docstr_tok: ["Register","a","target","class","for","a","specific","array-backend","label"]
code: def register_backend(
      self, name: str, backend: BackendEntrypointType
  ) -> BackendEntrypointType:
      """Register a target class for a specific array-backend label"""
      if not isinstance(backend, self._entrypoint_class):
          raise ValueError(
              f"This CreationDispatch only supports "
              f"{self._entrypoint_class} registration. "
              f"Got {type(backend)}"
          )
      self._lookup[name] = backend
      return backend
  
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 2 for calling the CreationDispatch obj's underlying member method code with example usage: obj.register_backend(name, backend) and returns: backend