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: Get the value for a key-value style config.
  
  Args:
      key: The key of the config.
      default: The default value to return if the key is not found.
  Returns: The value for the key, or the default value if the key is not found.
docstr_tok: ["Get","the","value","for","a","key-value","style","config",".","Args",":","key",":","The","key","of","the","config",".","default",":","The","default","value","to","return","if","the","key","is","not","found",".","Returns",":","The","value","for","the","key",",","or","the","default","value","if","the","key","is","not","found","."]
code: def get_config(self, key: str, default: Any = None) -> Any:
      """Get the value for a key-value style config.
  
      Args:
          key: The key of the config.
          default: The default value to return if the key is not found.
      Returns: The value for the key, or the default value if the key is not found.
      """
      return self._kv_configs.get(key, default)
  
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 4 for calling the DataContext obj's underlying member method code with example usage: obj.get_config(key, default) and returns: self