def load_run_view(cls, samples, key, select_fields=False):
        """Loads the view on which the specified run was performed.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            key: a run key
            select_fields (False): whether to exclude fields involved in other
                runs of the same type

        Returns:
            a :class:`fiftyone.core.collections.SampleCollection`
        """
        import fiftyone.core.view as fov

        run_doc = cls._get_run_doc(samples, key)

        if run_doc.view_stages is not None:
            stage_dicts = [json_util.loads(s) for s in run_doc.view_stages]
            view = fov.DatasetView._build(samples._root_dataset, stage_dicts)
        else:
            view = samples._root_dataset

        if not select_fields:
            return view

        fields = cls._get_run_fields(samples, key)
        root_fields = samples._get_root_fields(fields)

        exclude_fields = []
        for _key in cls.list_runs(samples):
            if _key == key:
                continue

            _fields = cls._get_run_fields(samples, _key)
            _root_fields = samples._get_root_fields(_fields)

            # Exclude top-level fields involved in other runs
            for field in _root_fields:
                if field not in root_fields:
                    exclude_fields.append(field)

            # Exclude nested fields from other runs on this run's fields
            for field in _fields:
                if any(field.startswith(r + ".") for r in root_fields):
                    exclude_fields.append(field)

        if exclude_fields:
            view = view.exclude_fields(exclude_fields)

        return view
Loads the view on which the specified run was performed.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            key: a run key
            select_fields (False): whether to exclude fields involved in other
                runs of the same type

        Returns:
            a :class:`fiftyone.core.collections.SampleCollection`
        
fiftyone/core/runs.py