    def load_operator(self, function: str, arg: List[Any], kws: Dict[str, Any], tag: str, latest: bool) -> Operator:
        """
        Attempts to load an operator from cache. If it does not exist, looks up the
        operator in a remote location and downloads it to cache instead. By standard
        convention, the operator must be called `Operator` and all associated data must
        be contained within a single directory.

        Args:
            function: (`str`)
                Origin and method/class name of the operator. Used to look up the proper
                operator in cache.
        """
        for factory in [self._load_operator_from_internal,
                        self._load_operator_from_registry,
                        self._load_operator_from_hub]:
            op = factory(function, arg, kws, tag, latest)
            if op is not None:
                return op
        if op is None:
            raise RuntimeError('Load operator failed')
Attempts to load an operator from cache. If it does not exist, looks up the
operator in a remote location and downloads it to cache instead. By standard
convention, the operator must be called `Operator` and all associated data must
be contained within a single directory.

Args:
function: (`str`)
Origin and method/class name of the operator. Used to look up the proper
operator in cache.
towhee/runtime/operator_manager/operator_loader.py