parameters: (original_function)
return_statement: return tf_decorator.make_decorator(original_function, wrapper)
docstring: Wraps absl.flags's define functions so tf.flags accepts old names.
docstring_summary: Wraps absl.flags's define functions so tf.flags accepts old names.
docstring_tokens: Wraps absl . flags s define functions so tf . flags accepts old names .
function: def _wrap_define_function(original_function):
    """Wraps absl.flags's define functions so tf.flags accepts old names."""
  
    def wrapper(*args, **kwargs):
      """Wrapper function that turns old keyword names to new ones."""
      has_old_names = False
      for old_name, new_name in _six.iteritems(_RENAMED_ARGUMENTS):
        if old_name in kwargs:
          has_old_names = True
          value = kwargs.pop(old_name)
          kwargs[new_name] = value
      if has_old_names:
        _logging.warning(
            'Use of the keyword argument names (flag_name, default_value, '
            'docstring) is deprecated, please use (name, default, help) instead.')
      return original_function(*args, **kwargs)
  
    return tf_decorator.make_decorator(original_function, wrapper)
function_tokens: def _wrap_define_function ( original_function ) : def wrapper ( * args , * * kwargs ) : """Wrapper function that turns old keyword names to new ones.""" has_old_names = False for old_name , new_name in _six . iteritems ( _RENAMED_ARGUMENTS ) : if old_name in kwargs : has_old_names = True value = kwargs . pop ( old_name ) kwargs [ new_name ] = value if has_old_names : _logging . warning ( 'Use of the keyword argument names (flag_name, default_value, ' 'docstring) is deprecated, please use (name, default, help) instead.' ) return original_function ( * args , * * kwargs ) return tf_decorator . make_decorator ( original_function , wrapper )