class_docstr: Customizes the behavior of a particular parameter.
  
  Users should override `modified_arguments()` to modify the parameter they
  want, eg: change the value of certain parameter or filter it from the params
  passed to the test case.
  
  See the sample usage below, it will change any negative parameters to zero
  before it gets passed to test case.
  ```
  class NonNegativeParameterModifier(ParameterModifier):
  
    def modified_arguments(self, kwargs, requested_parameters):
      updates = {}
      for name, value in kwargs.items():
        if value < 0:
          updates[name] = 0
      return updates
  ```
class_docstr_tok: ["Customizes","the","behavior","of","a","particular","parameter",".","Users","should","override","`","modified_arguments","(",")","`","to","modify","the","parameter","they","want",",","eg",":","change","the","value","of","certain","parameter","or","filter","it","from","the","params","passed","to","the","test","case",".","See","the","sample","usage","below",",","it","will","change","any","negative","parameters","to","zero","before","it","gets","passed","to","test","case",".","``","`","class","NonNegativeParameterModifier","(","ParameterModifier",")",":","def","modified_arguments","(","self",",","kwargs",",","requested_parameters",")",":","updates","=","{","}","for","name",",","value","in","kwargs.items","(",")",":","if","value","<","0",":","updates","[","name","]","=","0","return","updates","``","`"]
docstr: Replace user-provided arguments before they are passed to a test.
  
  This makes it possible to adjust user-provided arguments before passing
  them to the test method.
  
  Args:
    kwargs:  The combined arguments for the test.
    requested_parameters: The set of parameters that are defined in the
      signature of the test method.
  
  Returns:
    A dictionary with updates to `kwargs`.  Keys with values set to
    `ParameterModifier.DO_NOT_PASS_TO_THE_TEST` are going to be deleted and
    not passed to the test.
docstr_tok: ["Replace","user-provided","arguments","before","they","are","passed","to","a","test",".","This","makes","it","possible","to","adjust","user-provided","arguments","before","passing","them","to","the","test","method",".","Args",":","kwargs",":","The","combined","arguments","for","the","test",".","requested_parameters",":","The","set","of","parameters","that","are","defined","in","the","signature","of","the","test","method",".","Returns",":","A","dictionary","with","updates","to","`","kwargs","`",".","Keys","with","values","set","to","`","ParameterModifier.DO_NOT_PASS_TO_THE_TEST","`","are","going","to","be","deleted","and","not","passed","to","the","test","."]
code: def modified_arguments(self, kwargs, requested_parameters):
      """Replace user-provided arguments before they are passed to a test.
  
      This makes it possible to adjust user-provided arguments before passing
      them to the test method.
  
      Args:
        kwargs:  The combined arguments for the test.
        requested_parameters: The set of parameters that are defined in the
          signature of the test method.
  
      Returns:
        A dictionary with updates to `kwargs`.  Keys with values set to
        `ParameterModifier.DO_NOT_PASS_TO_THE_TEST` are going to be deleted and
        not passed to the test.
      """
      del kwargs, requested_parameters
      return {}
  
imports: from collections import OrderedDict
  import contextlib
  import re
  import types
  import unittest
  from absl.testing import parameterized
  from tensorflow.python.util import tf_inspect
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the ParameterModifier obj's underlying member method code with example usage: obj.modified_arguments(kwargs, requested_parameters) and returns: dict