code: def _get_runtime_args(func, *func_args, **func_kwargs):
      """
      Does some quick introspection to determine runtime values assigned
      to all parameters of a function for a given call, whether passed as
      args, kwargs, or defaults.
  
      Parameters
      ----------
      func : function
          The function to introspect
      func_args : tuple
          positional arguments passed to `func` at runtime
      func_kwargs : dict
          keyword arguments passed to `func` at runtime
  
      Returns
      -------
      runtime_vals : dict
          {parameter: value} mapping of runtime values
      """
      func_signature = inspect.signature(func)
      bound_args = func_signature.bind(*func_args, **func_kwargs)
      bound_args.apply_defaults()
      return bound_args.arguments
  
imports: import inspect
  import sys
  import traceback
  import warnings
  from contextlib import contextmanager, redirect_stdout
  from functools import wraps
  from io import StringIO
  from os import getenv
  from typing import Iterable
  import matplotlib
  import matplotlib.pyplot
  from .._shared.exceptions import HypertoolsBackendError
label_desc: Use image node_id 6 for calling a global function with example usage: _get_runtime_args(func) and returns: bound_args