code: def _separate_kwargs(kwargs, arg_input_type=_DataNode):
      """Separates arguments into scalar arguments and argument inputs (data nodes or tensor lists),
      that were historically specified in __init__ and __call__ of operator class.
  
      Returns a pair of dictionaries of kwargs - the first for arguments (__init__), the second for
      argument inputs (__call__).
  
      Args:
          kwargs: Keyword arguments.
          arg_input_type: operator's argument input type, DataNode for pipeline mode, TensorListCPU
              for eager mode.
      """
  
      def is_arg_input_type(x):
          return isinstance(x, arg_input_type)
  
      def is_arg_input(name, value):
          if name == "device":
              return False
          if name == "ndim":
              return False
          if is_arg_input_type(value):
              return True
          if isinstance(
              value,
              (str, list, tuple, nvidia.dali.types.ScalarConstant),
          ):
              return False
          return not nvidia.dali.types._is_scalar_value(value)
  
      def to_scalar(scalar):
          return (
              scalar.value
              if isinstance(scalar, nvidia.dali.types.ScalarConstant)
              else scalar
          )
  
      init_args = {}
      call_args = {}
      for name, value in kwargs.items():
          if value is None:
              continue
          if is_arg_input(name, value):
              call_args[name] = value
          else:
              init_args[name] = to_scalar(value)
  
      return init_args, call_args
  
imports: import sys
  import threading
  import tree
  import warnings
  from itertools import count
  import nvidia.dali.python_function_plugin
  from nvidia.dali import backend
  from nvidia.dali import fn
  from nvidia.dali import internal
  from nvidia.dali.data_node import DataNode
  from nvidia.dali.pipeline import Pipeline
  from nvidia.dali.types import _type_name_convert_to_string, _type_convert_value, _default_converter, _vector_element_type, ScalarConstant, Constant
  from nvidia.dali import _conditionals
  from nvidia.dali.ops import _registry, _names, _docs, _operator_utils
  from nvidia.dali.ops._registry import cpu_ops, mixed_ops, gpu_ops, register_cpu_op, register_gpu_op
  from nvidia.dali.ops._names import _op_name, _process_op_name, _schema_name
  from nvidia.dali.ops._operator_utils import _build_input_sets, _repack_output_sets
  from nvidia.dali.external_source import ExternalSource
  from nvidia.dali.ops._operators.python_function import PythonFunctionBase, PythonFunction, DLTensorPythonFunction, _dlpack_to_array, _dlpack_from_array
  from nvidia.dali.ops._operators.compose import Compose
  from nvidia.dali.ops._operators.math import _arithm_op, _group_inputs, _generate_input_desc
label_desc: Use image node_id 3 for calling a global function with example usage: _separate_kwargs(kwargs, arg_input_type) and returns: init_args,  call_args, isinstance, unknown, unknown, False, False, True, False