class_docstr: This class is a workaround for preserving serialization context
  in client mode.
class_docstr_tok: ["This","class","is","a","workaround","for","preserving","serialization","context","in","client","mode","."]
code: def __init__(self, obj: Any):
      self._serialized = cloudpickle.dumps(obj)
  
imports: from typing import Any, List, Optional
  import re
  import unicodedata
  import ray
  from ray.workflow.common import WORKFLOW_OPTIONS
  from ray.dag import DAGNode, FunctionNode, InputNode
  from ray.dag.input_node import InputAttributeNode, DAGInputData
  from ray import cloudpickle
  from ray._private import signature
  from ray._private.client_mode_hook import client_mode_should_convert
  from ray.workflow import serialization_context
  from ray.workflow.common import TaskType, WorkflowTaskRuntimeOptions, WorkflowRef, validate_user_metadata
  from ray.workflow import workflow_context
  from ray.workflow.workflow_state import WorkflowExecutionState, Task
label_desc: Use image node_id 1 to create a new _SerializationContextPreservingWrapper object  with example: obj = _SerializationContextPreservingWrapper(obj)