@classmethod
def task_convert(cls, task_name: str, pre_task=True, **kwargs) ->dict:
    """
        Run the argument conversion for a given task.

        :param task_name: the short name of the task. If long name is given, it will be reduced to that short name
        :param pre_task: Converters can be registered to run before or after a task runs
        :param kwargs: the argument dict to be converted
        """
    task_short_name = task_name.split('.')[-1]
    if task_short_name not in cls._task_instances:
        return kwargs
    task = cls._task_instances[task_short_name]
    return task.convert(pre_task=pre_task, **kwargs)
