def __init__(self, assign_defaults=(), method_name=None, overwrite=False):
    """Assigns arguments to the decorator.

    Args:
      assign_defaults: A sequence of strings for the default values that should
        be provided.
      method_name: If provided, use this as the method_name instead of the
        wrapped function's name.
      overwrite: If False, throw an exception if this method has already been
        registered.  True should be used in interactive environments or with
        great care.
    """
    if isinstance(assign_defaults, str):
      self._assign_defaults = [assign_defaults]
    else:
      self._assign_defaults = assign_defaults
    self._method_name = method_name
    self._overwrite = overwrite
    _valid_defaults.update(self._assign_defaults)
    default_args = sorted(_valid_defaults)
    default_values = [None] * len(_valid_defaults)
    if six.PY2:
      default_func = PrettyTensor.with_defaults.__func__
    else:
      default_func = PrettyTensor.with_defaults
    _set_ipython_string(default_func, default_args, default_values,
                        _original_set_defaults_doc)
    _set_ipython_string(defaults_scope, default_args, default_values,
                        _original_defaults_scope_doc)
def __init__ ( self , assign_defaults = ( ) , method_name = None , overwrite = False ) : if isinstance ( assign_defaults , str ) : self . _assign_defaults = [ assign_defaults ] else : self . _assign_defaults = assign_defaults self . _method_name = method_name self . _overwrite = overwrite _valid_defaults . update ( self . _assign_defaults ) default_args = sorted ( _valid_defaults ) default_values = [ None ] * len ( _valid_defaults ) if six . PY2 : default_func = PrettyTensor . with_defaults . __func__ else : default_func = PrettyTensor . with_defaults _set_ipython_string ( default_func , default_args , default_values , _original_set_defaults_doc ) _set_ipython_string ( defaults_scope , default_args , default_values , _original_defaults_scope_doc )
Assigns arguments to the decorator.

    Args:
      assign_defaults: A sequence of strings for the default values that should
        be provided.
      method_name: If provided, use this as the method_name instead of the
        wrapped function's name.
      overwrite: If False, throw an exception if this method has already been
        registered.  True should be used in interactive environments or with
        great care.