original_docstring: 
      Wrapper that automatically handles the `reuse' parameter.
      This is rather risky, as it can lead to reusing variables
      by mistake.
      
docstring: Wrapper that automatically handles the `reuse' parameter.
  This is rather risky, as it can lead to reusing variables
  by mistake.
docstring_tokens: Wrapper that automatically handles the ` reuse ' parameter . This is rather risky as it can lead to reusing variables by mistake .
code: def auto_reuse(fun):
      """
      Wrapper that automatically handles the `reuse' parameter.
      This is rather risky, as it can lead to reusing variables
      by mistake.
      """
      def fun_(*args, **kwargs):
          try:
              return fun(*args, **kwargs)
          except ValueError as e:
              if 'reuse' in str(e):
                  with tf.variable_scope(tf.get_variable_scope(), reuse=True):
                      return fun(*args, **kwargs)
              else:
                  raise e
      return fun_
code_tokens: def auto_reuse ( fun ) : def fun_ ( * args , ** kwargs ) : try : return fun ( * args , ** kwargs ) except ValueError as e : if 'reuse' in str ( e ) : with tf . variable_scope ( tf . get_variable_scope ( ) , reuse = True ) : return fun ( * args , ** kwargs ) else : raise e return fun_
short_docstring: Wrapper that automatically handles the `reuse' parameter.
short_docstring_tokens: Wrapper that automatically handles the ` reuse ' parameter .
comment: """
      Wrapper that automatically handles the `reuse' parameter.
      This is rather risky, as it can lead to reusing variables
      by mistake.
      """