def from_dict(cls, d, samples, config, key):
        """Builds a :class:`BaseRunResults` from a JSON dict representation of
        it.

        Args:
            d: a JSON dict
            samples: the :class:`fiftyone.core.collections.SampleCollection`
                for the run
            config: the :class:`BaseRunConfig` for the run
            key: the run key

        Returns:
            a :class:`BaseRunResults`
        """
        if d is None:
            return None

        run_results_cls = d.pop("cls", None)
        try:
            run_results_cls = etau.get_class(run_results_cls)
        except:
            logger.debug(
                "Unable to load '%s'; falling back to base class",
                run_results_cls,
            )
            run_results_cls = cls.base_results_cls(config.type)

        return run_results_cls._from_dict(d, samples, config, key)
Builds a :class:`BaseRunResults` from a JSON dict representation of
        it.

        Args:
            d: a JSON dict
            samples: the :class:`fiftyone.core.collections.SampleCollection`
                for the run
            config: the :class:`BaseRunConfig` for the run
            key: the run key

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