def update_run_config(cls, samples, key, config):
        """Updates the :class:`BaseRunConfig` for the given run on the
        collection.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            key: a run key
            config: a :class:`BaseRunConfig`
        """
        if key is None:
            return

        run_doc = cls._get_run_doc(samples, key)
        run_doc.config = deepcopy(config.serialize())
        run_doc.save()
Updates the :class:`BaseRunConfig` for the given run on the
        collection.

        Args:
            samples: a :class:`fiftyone.core.collections.SampleCollection`
            key: a run key
            config: a :class:`BaseRunConfig`
        
fiftyone/core/runs.py