def get_task_parameter(task_parameters, name):
    """Get task parameter.
    Args:
        task_parameters (list): task parameters.
        name (str): parameter name.
    Returns:
        Task parameter
    """
    for param in task_parameters:
        param_name = param.get('name')
        if param_name == name:
            return param
    return