class_docstr: Replaces one value in an ``args, kwargs`` pair.
  
  Inspects the function signature to find an argument by name
  whether it is passed by position or keyword.  For use in decorators
  and similar wrappers.
docstr: Replace the named argument in ``args, kwargs`` with ``new_value``.
  
  Returns ``(old_value, args, kwargs)``.  The returned ``args`` and
  ``kwargs`` objects may not be the same as the input objects, or
  the input objects may be mutated.
  
  If the named argument was not found, ``new_value`` will be added
  to ``kwargs`` and None will be returned as ``old_value``.
docstr_tok: ["Replace","the","named","argument","in","``","args",",","kwargs","``","with","``","new_value","``",".","Returns","``","(","old_value",",","args",",","kwargs",")","``",".","The","returned","``","args","``","and","``","kwargs","``","objects","may","not","be","the","same","as","the","input","objects",",","or","the","input","objects","may","be","mutated",".","If","the","named","argument","was","not","found",",","``","new_value","``","will","be","added","to","``","kwargs","``","and","None","will","be","returned","as","``","old_value","``","."]
code: def replace(self, new_value, args, kwargs):
      # type: (Any, List[Any], Dict[str, Any]) -> Tuple[Any, List[Any], Dict[str, Any]]
      """Replace the named argument in ``args, kwargs`` with ``new_value``.
  
      Returns ``(old_value, args, kwargs)``.  The returned ``args`` and
      ``kwargs`` objects may not be the same as the input objects, or
      the input objects may be mutated.
  
      If the named argument was not found, ``new_value`` will be added
      to ``kwargs`` and None will be returned as ``old_value``.
      """
      if self.arg_pos is not None and len(args) > self.arg_pos:
          # The arg to replace is passed positionally
          old_value = args[self.arg_pos]
          args = list(args)  # *args is normally a tuple
          args[self.arg_pos] = new_value
      else:
          # The arg to replace is either omitted or passed by keyword.
          old_value = kwargs.get(self.name)
          kwargs[self.name] = new_value
      return old_value, args, kwargs
  
imports: from __future__ import absolute_import, division, print_function
  import array
  import atexit
  import os
  import re
  import sys
  import zlib
label_desc: Use image node_id 4 for calling the ArgReplacer obj's underlying member method code with example usage: obj.replace(new_value, args, kwargs) and returns: old_value,  args,  kwargs