code: def wrap_kwargs_support(f, args_offsets, kwargs_offsets):
      if len(kwargs_offsets):
          keys = list(kwargs_offsets.keys())
  
          len_args_offsets = len(args_offsets)
          if len_args_offsets > 0:
  
              def func(*args):
                  return f(
                      *args[:len_args_offsets],
                      **dict(zip(keys, args[len_args_offsets:])),
                  )
  
          else:
  
              def func(*args):
                  return f(**dict(zip(keys, args)))
  
          return func, args_offsets + [
              kwargs_offsets[key] for key in keys
          ]
      else:
          return f, args_offsets
  
imports: import os
  import sys
  import dataclasses
  import time
  import inspect
  import json
  from typing import Any, Callable, Iterable, Iterator, Optional
  import faulthandler
  from pyspark.accumulators import _accumulatorRegistry
  from pyspark.java_gateway import local_connect_and_auth
  from pyspark.taskcontext import BarrierTaskContext, TaskContext
  from pyspark.resource import ResourceInformation
  from pyspark.rdd import PythonEvalType
  from pyspark.serializers import write_int, read_long, read_bool, write_long, read_int, SpecialLengths, UTF8Deserializer, CPickleSerializer, BatchedSerializer
  from pyspark.sql.functions import SkipRestOfInputTableException
  from pyspark.sql.pandas.serializers import ArrowStreamPandasUDFSerializer, ArrowStreamPandasUDTFSerializer, CogroupArrowUDFSerializer, CogroupPandasUDFSerializer, ArrowStreamUDFSerializer, ArrowStreamGroupUDFSerializer, ApplyInPandasWithStateSerializer
  from pyspark.sql.pandas.types import to_arrow_type
  from pyspark.sql.types import ArrayType, BinaryType, DataType, MapType, Row, StringType, StructType, _create_row, _parse_datatype_json_string
  from pyspark.util import fail_on_stopiteration, handle_worker_exception
  from pyspark import shuffle
  from pyspark.errors import PySparkRuntimeError, PySparkTypeError
  from pyspark.worker_util import check_python_version, read_command, pickleSer, send_accumulator_updates, setup_broadcasts, setup_memory_limits, setup_spark_files, utf8_deserializer
label_desc: Use image node_id 19 for calling a global function with example usage: wrap_kwargs_support(f, args_offsets, kwargs_offsets) and returns: func,  unknown, f,  args_offsets, f, f