def is_triple_quotes_string(string):
    """Return whether the string has triple quotes or not.

    Parameters
    ==========
    string (string)
        string which we check whether it is triple quotes
        string or not.
    """

    return (
        ## True if string starts with either '"""' or "'''"
        any(string.startswith(quote_str) for quote_str in MULTI_LINE_STR_QUOTES)
        and
        ## True if string ends with either '"""' or "'''"
        any(string.startswith(quote_str) for quote_str in MULTI_LINE_STR_QUOTES)
    )
Return whether the string has triple quotes or not.

    Parameters
    ==========
    string (string)
        string which we check whether it is triple quotes
        string or not.
    
nodezator/syntaxman/syntaxes/python/utils.py