def find_variable(variable_wrapper, variable_name):
    """Search through a collection of variables and return the variable
    with the given name

    :param variable_wrapper: A collection of variables in the Google Tag Manager
                              List Response format
    :type variable_wrapper: dict
    :param variable_name: The name of a variable to find
    :type variable_name: str
    :return: A Google Tag Manager variable
    :rtype: dict
    """
    if "variable" in variable_wrapper:
        for variable in variable_wrapper["variable"]:
            if variable["name"] == variable_name:
                return variable
    return None