def base_results_cls(type):
        """Returns the results class for the given run type.

        Args:
            type: a :attr:`BaseRunConfig.type`

        Returns:
            a :class:`BaseRunResults` subclass
        """
        import fiftyone.core.annotation as foa
        import fiftyone.core.brain as fob
        import fiftyone.core.evaluation as foe
        import fiftyone.utils.eval as foue

        # pylint: disable=import-error,no-name-in-module
        import fiftyone.brain.similarity as fbs
        import fiftyone.brain.visualization as fbv

        if type == "annotation":
            return foa.AnnotationResults
        if type == "brain":
            return fob.BrainResults
        if type == "evaluation":
            return foe.EvaluationResults
        if type == "run":
            return RunResults

        if type == "regression":
            return foue.RegressionResults
        if type == "classification":
            return foue.ClassificationResults
        if type == "detection":
            return foue.DetectionResults
        if type == "segmentation":
            return foue.SegmentationResults

        if type == "similarity":
            return fbs.SimilarityIndex
        if type == "visualization":
            return fbv.VisualizationResults
        if type == "hardness":
            return None
        if type == "mistakenness":
            return None
        if type == "uniqueness":
            return None

        logger.debug("Unrecognized run type '%s'", type)
        return RunResults
Returns the results class for the given run type.

        Args:
            type: a :attr:`BaseRunConfig.type`

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