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.
class_docstr_tok: ["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: Returns the old value of the named argument without replacing it.
  
  Returns ``default`` if the argument is not present.
code: def get_old_value(
      self,
      args: Sequence[Any],
      kwargs: Dict[str, Any],
      default: Any = None,
  ) -> Any:
      """Returns the old value of the named argument without replacing it.
  
      Returns ``default`` if the argument is not present.
      """
      if self.arg_pos is not None and len(args) > self.arg_pos:
          return args[self.arg_pos]
      else:
          return kwargs.get(self.name, default)
  
imports: import array
  import asyncio
  import atexit
  from inspect import getfullargspec
  import os
  import re
  import typing
  import zlib
  from typing import Any, Optional, Dict, Mapping, List, Tuple, Match, Callable, Type, Sequence
label_desc: Use image node_id 3 for calling the ArgReplacer obj's underlying member method code with example usage: obj.get_old_value(args, kwargs, default) and returns: args, kwargs