def extract_task(tsk, tsk_lst):
    ' Searches for a task in the task lst and if found:\n        the corresponding keywords and values will be returned\n\n        Function only works if task is present in the list one time.\n\n        :param tsk: task to extract information for\n        :type tsk: str\n        :param tsk_lst: list of tasks to run for some driver\n        :type tsk_lst: tuple(tuple(str/dict))\n        :rtype: tuple(str/dict)\n    '
    tsk_inf = None
    for _tsk_inf in tsk_lst:
        if any(((x == tsk) for x in _tsk_inf)):
            tsk_inf = _tsk_inf
            break
    return tsk_inf
Searches for a task in the task lst and if found:
the corresponding keywords and values will be returned

Function only works if task is present in the list one time.

:param tsk: task to extract information for
:type tsk: str
:param tsk_lst: list of tasks to run for some driver
:type tsk_lst: tuple(tuple(str/dict))
:rtype: tuple(str/dict)
def extract_task(tsk, tsk_lst):
    ' Searches for a task in the task lst and if found:\n        the corresponding keywords and values will be returned\n\n        Function only works if task is present in the list one time.\n\n        :param tsk: task to extract information for\n        :type tsk: str\n        :param tsk_lst: list of tasks to run for some driver\n        :type tsk_lst: tuple(tuple(str/dict))\n        :rtype: tuple(str/dict)\n    '
    tsk_inf = None
    for _tsk_inf in tsk_lst:
        if any(((x == tsk) for x in _tsk_inf)):
            tsk_inf = _tsk_inf
            break
    return tsk_inf