code: def convert_kwargs(name, kwargs):
      kwargs = dict(kwargs)
  
      signature = sig_of(name)
  
      bound = signature.bind(DUMMY_RANDOM, **kwargs)
      bound.apply_defaults()
  
      for k in list(kwargs):
          if (
              kwargs[k] is signature.parameters[k].default
              or signature.parameters[k].kind
              != inspect.Parameter.KEYWORD_ONLY
          ):
              kwargs.pop(k)
  
      arg_names = list(signature.parameters)[1:]
  
      args = []
  
      for a in arg_names:
          if (
              signature.parameters[a].kind
              == inspect.Parameter.KEYWORD_ONLY
          ):
              break
          args.append(bound.arguments[a])
          kwargs.pop(a, None)
  
      while args:
          name = arg_names[len(args) - 1]
          if args[-1] is signature.parameters[name].default:
              args.pop()
          else:
              break
  
      return (args, kwargs)
  
imports: import inspect
  import math
  from random import Random
  from typing import Any, Dict
  import attr
  from hypothesis.control import should_note
  from hypothesis.internal.reflection import define_function_signature
  from hypothesis.reporting import report
  from hypothesis.strategies._internal.core import binary, lists, permutations, sampled_from
  from hypothesis.strategies._internal.numbers import floats, integers
  from hypothesis.strategies._internal.strategies import SearchStrategy
label_desc: Use image node_id 8 for calling a global function with example usage: convert_kwargs(name, kwargs) and returns: args,  kwargs