def from_dict(cls, d):
        """Constructs a :class:`BaseRunConfig` from a serialized JSON dict
        representation of it.

        Args:
            d: a JSON dict

        Returns:
            a :class:`BaseRunConfig`
        """
        config_cls = d.get("cls", None)
        type = d.get("type", None)

        try:
            config_cls = etau.get_class(config_cls)
        except Exception as e:
            logger.warning(
                f"Unable to load {config_cls}; falling back to base class",
                exc_info=True,
            )
            config_cls = cls.base_config_cls(type)

        for key in config_cls._virtual_attributes():
            d.pop(key, None)

        return config_cls(**d)
Constructs a :class:`BaseRunConfig` from a serialized JSON dict
        representation of it.

        Args:
            d: a JSON dict

        Returns:
            a :class:`BaseRunConfig`
        
fiftyone/core/runs.py