#NEWLINE# def tokenize( * args , **kwargs ) : #NEWLINE# #INDENT# 'Mapping function from task -> consistent name.\n\n    Parameters\n    ----------\n    args : object\n        Python objects that summarize the task.\n    pure : boolean, optional\n        If True, a consistent hash function is tried on the input. If this\n        fails, then a unique identifier is used. If False (default), then a\n        unique identifier is always used.\n    ' #NEWLINE# if kwargs . pop ( 'pure' , False ) : #NEWLINE# #INDENT# return base . tokenize ( * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return str ( uuid . uuid4 ( ) )