code: def update(self, **kwargs):
          
          for arg in kwargs:
              if hasattr(self, arg):
                  setattr(self, arg, kwargs[arg])
              else:
                  raise ValueError("Invalid RayParams parameter in"
                                   " update: %s" % arg)
  
          self._check_usage()
docs: Update the settings according to the keyword arguments.
  
          Args:
              kwargs: The keyword arguments to set corresponding fields.