def get_argument(node, arg):
    """
    Checks for an argument in node and returns it, otherwise returns None.
    """

    for kw in node.value.keywords:
        if kw.arg == arg:
            return kw
    return None