class_docstr: A concrete implementation of RegistryBundleBase with sensible defaults.
class_docstr_tok: ["A","concrete","implementation","of","RegistryBundleBase","with","sensible","defaults","."]
code: def __init__(
      self,
      metric_clss: Dict[Type[Metric], Optional[int]],
      runner_clss: Dict[Type[Runner], Optional[int]],
      # pyre-fixme[2]: Parameter annotation cannot contain `Any`.
      # pyre-fixme[24]: Generic type `type` expects 1 type parameter, use
      #  `typing.Type` to avoid runtime subscripting errors.
      json_encoder_registry: Dict[
          Type, Callable[[Any], Dict[str, Any]]
      ] = CORE_ENCODER_REGISTRY,
      # pyre-fixme[2]: Parameter annotation cannot contain `Any`.
      # pyre-fixme[24]: Generic type `type` expects 1 type parameter, use
      #  `typing.Type` to avoid runtime subscripting errors.
      json_class_encoder_registry: Dict[
          Type, Callable[[Any], Dict[str, Any]]
      ] = CORE_CLASS_ENCODER_REGISTRY,
      # pyre-fixme[24]: Generic type `type` expects 1 type parameter, use
      #  `typing.Type` to avoid runtime subscripting errors.
      json_decoder_registry: Dict[str, Type] = CORE_DECODER_REGISTRY,
      # pyre-fixme[2]: Parameter annotation cannot contain `Any`.
      json_class_decoder_registry: Dict[
          str, Callable[[Dict[str, Any]], Any]
      ] = CORE_CLASS_DECODER_REGISTRY,
  ) -> None:
      super().__init__(
          metric_clss=metric_clss,
          runner_clss=runner_clss,
          json_encoder_registry=json_encoder_registry,
          json_class_encoder_registry=json_class_encoder_registry,
          json_decoder_registry=json_decoder_registry,
          json_class_decoder_registry=json_class_decoder_registry,
      )
      self._sqa_config = SQAConfig(
          json_encoder_registry={
              **self.encoder_registry,
              **CORE_ENCODER_REGISTRY,
          },
          json_decoder_registry={
              **self.decoder_registry,
              **CORE_DECODER_REGISTRY,
          },
          metric_registry=self.metric_registry,
          runner_registry=self.runner_registry,
          json_class_encoder_registry=self.class_encoder_registry,
          json_class_decoder_registry=self.class_decoder_registry,
      )
  
      self._encoder = Encoder(self._sqa_config)
      self._decoder = Decoder(self._sqa_config)
  
imports: from __future__ import annotations
  from abc import ABC, abstractproperty
  from typing import Any, Callable, ChainMap, Dict, Optional, Type
  from ax.core.metric import Metric
  from ax.core.runner import Runner
  from ax.storage.json_store.registry import CORE_CLASS_DECODER_REGISTRY, CORE_CLASS_ENCODER_REGISTRY, CORE_DECODER_REGISTRY, CORE_ENCODER_REGISTRY
  from ax.storage.metric_registry import register_metrics
  from ax.storage.runner_registry import register_runners
  from ax.storage.sqa_store.decoder import Decoder
  from ax.storage.sqa_store.encoder import Encoder
  from ax.storage.sqa_store.sqa_config import SQAConfig
label_desc: Use image node_id 1 to create a new RegistryBundle object from inherited base classes: RegistryBundleBase with example: obj = RegistryBundle(metric_clss, runner_clss, json_encoder_registry, json_class_encoder_registry, json_decoder_registry, json_class_decoder_registry)