code: def convert_positional_arguments(function, args, kwargs):
      """Return a tuple (new_args, new_kwargs) where all possible arguments have
      been moved to kwargs.
  
      new_args will only be non-empty if function has a variadic argument.
      """
      argspec = getfullargspec(function)
      new_kwargs = dict(argspec.kwonlydefaults or {})
      new_kwargs.update(kwargs)
      if not argspec.varkw:
          for k in new_kwargs.keys():
              if k not in argspec.args and k not in argspec.kwonlyargs:
                  raise TypeError(
                      "%s() got an unexpected keyword argument %r"
                      % (function.__name__, k)
                  )
      if len(args) < len(argspec.args):
          for i in hrange(
              len(args), len(argspec.args) - len(argspec.defaults or ())
          ):
              if argspec.args[i] not in kwargs:
                  raise TypeError(
                      "No value provided for argument %s"
                      % (argspec.args[i],)
                  )
      for kw in argspec.kwonlyargs:
          if kw not in new_kwargs:
              raise TypeError("No value provided for argument %s" % kw)
  
      if len(args) > len(argspec.args) and not argspec.varargs:
          raise TypeError(
              "%s() takes at most %d positional arguments (%d given)"
              % (function.__name__, len(argspec.args), len(args))
          )
  
      for arg, name in zip(args, argspec.args):
          if name in new_kwargs:
              raise TypeError(
                  "%s() got multiple values for keyword argument %r"
                  % (function.__name__, name)
              )
          else:
              new_kwargs[name] = arg
      return (tuple(args[len(argspec.args) :]), new_kwargs)
  
imports: from __future__ import absolute_import, division, print_function
  import ast
  import hashlib
  import inspect
  import re
  import types
  from functools import wraps
  from types import ModuleType
  from hypothesis.internal.compat import ARG_NAME_ATTRIBUTE, PY2, getfullargspec, hrange, isidentifier, qualname, str_to_bytes, to_str, to_unicode, update_code_location
  from hypothesis.vendor.pretty import pretty
label_desc: Use image node_id 7 for calling a global function with example usage: convert_positional_arguments(function, args, kwargs) and returns: tuple,  new_kwargs