def _replace_args_with_defaults(self, _args=None, **kwargs):
    """Internal method to fill absent values in the kwargs with the defaults.

    Args:
      _args: A list of arguments to replace if a subset is required.  Name
        chosen to prevent conflicts with kwargs.
      **kwargs: The arguments to replace with defaults.
    Returns:
      A map with the same fields as kwargs, but absent values are filled with
      defaults.
    """
    if _args is None:
      _args = six.iterkeys(kwargs)
    my_defaults = self.defaults
    for k in _args:
      if k not in kwargs:
        if k in my_defaults:
          kwargs[k] = my_defaults[k]
        elif k in _defaults:
          kwargs[k] = _defaults[k]
    return kwargs
def _replace_args_with_defaults ( self , _args = None , ** kwargs ) : if _args is None : _args = six . iterkeys ( kwargs ) my_defaults = self . defaults for k in _args : if k not in kwargs : if k in my_defaults : kwargs [ k ] = my_defaults [ k ] elif k in _defaults : kwargs [ k ] = _defaults [ k ] return kwargs
Internal method to fill absent values in the kwargs with the defaults.

    Args:
      _args: A list of arguments to replace if a subset is required.  Name
        chosen to prevent conflicts with kwargs.
      **kwargs: The arguments to replace with defaults.
    Returns:
      A map with the same fields as kwargs, but absent values are filled with
      defaults.