human
Complete the below
def endswith(string):

    ''''Checks if the string value ends with another string.'
    '''
 Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
    def ends_with(value):
        validate(text, value)
        if (not value.endswith(string)):
            raise ValueError("'{0}'    does    not    end    with    '{1}'".format(value, string))
        return True
    return ends_with