def has_cached_run_results(cls, samples, key):
        """Determines whether :class:`BaseRunResults` for the given key are
        cached on the collection.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            key: a run key

        Returns:
            True/False
        """
        dataset = samples._root_dataset
        results_cache = getattr(dataset, cls._results_cache_field())
        return key in results_cache
Determines whether :class:`BaseRunResults` for the given key are
        cached on the collection.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            key: a run key

        Returns:
            True/False
        
fiftyone/core/runs.py