code: def workflow_args_keeping_context() -> None:
      """
      This context only read workflow arguments. Workflows inside
      are untouched and can be serialized again properly.
      """
      global _resolve_workflow_refs
      _resolve_workflow_refs_bak = _resolve_workflow_refs
  
      # we must capture the old functions to prevent self-referencing.
      def _keep_workflow_refs(index: int):
          return _KeepWorkflowRefs(index)
  
      _resolve_workflow_refs = _keep_workflow_refs
  
      try:
          yield
      finally:
          _resolve_workflow_refs = _resolve_workflow_refs_bak
  
file_path: ray/python/ray/workflow/serialization_context.py
imports: import contextlib
  from typing import List, Any, Dict
  from ray.util.serialization import register_serializer, deregister_serializer
  from ray.workflow.common import WorkflowRef
label_desc: Use image node_id 4 for calling a global function with example usage: workflow_args_keeping_context() and returns: _KeepWorkflowRefs