def cookie_is_encoded(data):
 depr(0, 13, 'cookie_is_encoded() will be removed soon.', 'Do not use this API directly.')
 return bool((data.startswith(tob('!')) and (tob('?') in data)))

def cookie_is_encoded ( data ) : depr ( 0 , 13 , 'cookie_is_encoded() will be removed soon.' , 'Do not use this API directly.' ) return bool ( ( data . startswith ( tob ( '!' ) ) and ( tob ( '?' ) in data ) ) )
return true if the argument looks like a encoded cookie .