def endswith(suffix):
    """
    Create a function that checks if the argument
    that is passed in ends with string
    :param str suffix: string to check the end for
    :return func endswith_function: a function that checks if the
    argument ends with the specified string
    """
    def string_ends_with(string):
        return str.endswith(string, suffix)
    return string_ends_with