code: def add_defaults(f, kwargs, skip=[]):
      # Get defaults
      signature = inspect.signature(f)
      defaults = {
          k: v.default
          for k, v in signature.parameters.items()
          if v.default is not inspect.Parameter.empty
      }
  
      # Add the defaults to the kwargs if they are not already there
      for k, v in defaults.items():
          if k not in kwargs:
              kwargs[k] = v
  
      # Remove the arguments in skip
      for k in skip:
          if k in kwargs:
              del kwargs[k]
  
      return kwargs
  
file_path: jaxdf/jaxdf/signatures.py
imports: import inspect
  from inspect import getfullargspec
  from typing import Callable
label_desc: Use image node_id 3 for calling a global function with example usage: add_defaults(f, kwargs, skip) and returns: kwargs