<s> """<STR_LIT>""" <EOL> import collections <EOL> import itertools <EOL> import sys <EOL> import warnings <EOL> def is_iterable ( x ) : <EOL> "<STR_LIT>" <EOL> try : <EOL> iter ( x ) <EOL> except TypeError : <EOL> return False <EOL> else : <EOL> return True <EOL> def is_iterator ( x ) : <EOL> """<STR_LIT>""" <EOL> if sys . version_info >= ( <NUM_LIT:2> , <NUM_LIT:7> ) : <EOL> return isinstance ( x , collections . Iterator ) <EOL> return isinstance ( x , collections . Iterator ) and hasattr ( x , '<STR_LIT>' ) <EOL> def product ( * args , ** kwds ) : <EOL> warnings . warn ( "<STR_LIT>" , <EOL> PendingDeprecationWarning ) <EOL> return itertools . product ( * args , ** kwds ) <EOL> def all ( iterable ) : <EOL> warnings . warn ( "<STR_LIT>" , <EOL> DeprecationWarning ) <EOL> return builtins . all ( iterable ) <EOL> def any ( iterable ) : <EOL> warnings . warn ( "<STR_LIT>" , <EOL> DeprecationWarning ) <EOL> return builtins . any ( iterable ) </s>
