code: def extract_arg_defaults(
      argspec: inspect.FullArgSpec,
  ) -> Dict[str, Any]:
      """Extracts arg default values as a dict from arg name to its default value.
  
      Args:
        argspec: An `inspect.FullArgSpec` instance describing the function. Usually
          obtained from `inspect.getfullargspec(func)`.
  
      Returns:
        A dict from arg name to its default value. Args without default values are
        omitted in the dict.
      """
      arg_defaults = {}
      if argspec.defaults:
          arg_defaults = dict(
              zip(
                  argspec.args[-len(argspec.defaults) :],
                  argspec.defaults,
              )
          )
      return arg_defaults
  
imports: import enum
  import inspect
  import sys
  import types
  from typing import Any, Dict, Optional, Type
  from tfx import types
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import executor_spec
  from tfx.types import artifact
  from tfx.types import component_spec
  from tfx.types import system_executions
label_desc: Use image node_id 3 for calling a global function with example usage: extract_arg_defaults(argspec) and returns: arg_defaults