    def from_hub(name, args, kwargs, tag, latest):
        """Create an Action for hub op.

        Args:
            name (str): The op name or the path to an op.
            args (list): The op args.
            kwargs (dict): The op kwargs.
            tag: (`str`): The tag of op.
            latest (`bool`): Whether to download the latest op files.

        Returns:
            Action: The action.
        """
        action = OperatorAction()
        action._op_name = name
        action._op_args = args
        action._op_kwargs = kwargs
        action._tag = tag
        action._latest = latest
        action._type = 'hub'
        return action
Create an Action for hub op.

Args:
name (str): The op name or the path to an op.
args (list): The op args.
kwargs (dict): The op kwargs.
tag: (`str`): The tag of op.
latest (`bool`): Whether to download the latest op files.

Returns:
Action: The action.
towhee/runtime/operator_manager/operator_action.py