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: Compare `ParameterModifier` by type or `parameter_name`.
docstr_tok: ["Compare","`","ParameterModifier","`","by","type","or","`","parameter_name","`","."]
code: def __hash__(self):
      """Compare `ParameterModifier` by type or `parameter_name`."""
      if self._parameter_name:
          return hash(self._parameter_name)
      else:
          return id(self.__class__)
  
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 5 for calling the ParameterModifier obj's underlying member method code with example usage: obj.__hash__() and returns: hash, id