code: def FunctionHasArg(
      fn: Callable, arg_name: str
  ) -> bool:  # pylint: disable=g-bare-generic
      """Test at runtime if a function's signature contains a certain argument.
  
      Args:
        fn: function to be tested.
        arg_name: Name of the argument to be tested.
  
      Returns:
        True if the function signature contains that argument.
      """
      if sys.version_info.major == 2:
          return (
              arg_name in inspect.getargspec(fn).args
          )  # pylint: disable=deprecated-method
      else:
          return arg_name in inspect.signature(fn).parameters
  
imports: import inspect
  import sys
  from typing import Any, Callable, Sequence, Mapping
label_desc: Use image node_id 3 for calling a global function with example usage: FunctionHasArg(fn, arg_name) and returns: unknown, unknown