def endswith_str(text, suffix, start=None, end=None):
    """
    Determines if ``text`` ends with the specified suffix. 
    
    The suffix can also be a tuple of suffixes to look for. With optional parameter ``start``, 
    the test will begin at that position. With optional parameter ``end``, the test will
    stop comparing at that position.
    
    :param text: The string to search
    :type text:  ``str``
    
    :param suffix: The suffix to search for
    :type suffix:  ``str`` or ``tuple`` of ``str``
    
    :param start: The start of the search range
    :type start:  ``int``
    
    :param end: The end of the search range
    :type end:  ``int``
    
    :return: True if ``text`` ends with the specified suffix, otherwise return False. 
    :rtype:  ``int``
    """
    assert isinstance(text, str), '%s is not a string' % text
    return text.endswith(suffix, start, end)
