code: def get_param_info(sig: Signature) -> tuple[list[str], list[Any]]:
      """Find parameters with defaults and return them.
  
      Arguments:
          sig (Signature) : a function signature
  
      Returns:
          tuple(list, list) : parameters with defaults
  
      """
      defaults = []
      for param in sig.parameters.values():
          if param.default is not param.empty:
              defaults.append(param.default)
      return [name for name in sig.parameters], defaults
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any
label_desc: Use image node_id 1 for calling a global function with example usage: get_param_info(sig) and returns: unknown,  defaults