class_docstr: Singleton for shared Dataset resources and configurations.
  
  This object is automatically propagated to workers and can be retrieved
  from the driver and remote workers via DataContext.get_current().
docstr: Set the current context in a remote worker.
  
  This is used internally by Dataset to propagate the driver context to
  remote workers used for parallelization.
docstr_tok: ["Set","the","current","context","in","a","remote","worker",".","This","is","used","internally","by","Dataset","to","propagate","the","driver","context","to","remote","workers","used","for","parallelization","."]
code: def _set_current(context: "DataContext") -> None:
      """Set the current context in a remote worker.
  
      This is used internally by Dataset to propagate the driver context to
      remote workers used for parallelization.
      """
      global _default_context
      _default_context = context
  
file_path: ray/python/ray/data/context.py
imports: import os
  import threading
  from typing import TYPE_CHECKING, Any, Dict, List, Optional
  import ray
  from ray._private.ray_constants import env_integer
  from ray.util.annotations import DeveloperAPI
  from ray.util.scheduling_strategies import SchedulingStrategyT
label_desc: Use image node_id 3 for calling the DataContext obj's underlying member method code with example usage: obj._set_current(context) without return types