code: def _format_args(worker, args, kwargs):
      """Format args for various languages.
  
      Args:
          worker: The global worker instance.
          args: The arguments for cross language.
          kwargs: The keyword arguments for cross language.
  
      Returns:
          List of args and kwargs (if supported).
      """
      if not worker.load_code_from_local:
          raise ValueError(
              "Cross language feature needs --load-code-from-local to be set."
          )
      if kwargs:
          raise TypeError(
              f"Cross language remote functions does not support kwargs, "
              f"kwargs:{str(kwargs)}."
          )
      return args
  
file_path: ray/python/ray/cross_language.py
imports: from __future__ import absolute_import, division, print_function
  from ray import Language
  from ray._raylet import CppFunctionDescriptor, JavaFunctionDescriptor
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 5 for calling a global function with example usage: _format_args(worker, args, kwargs) and returns: args