code: def patch_dask(ray_dask_persist, ray_dask_persist_mixin):
      dask.persist = ray_dask_persist
      dask.base.DaskMethodsMixin.persist = ray_dask_persist_mixin
  
imports: import dask
  from .scheduler import ray_dask_get, ray_dask_get_sync, enable_dask_on_ray, disable_dask_on_ray
  from .callbacks import RayDaskCallback, local_ray_callbacks, unpack_ray_callbacks, ProgressBarCallback
  from .optimizations import dataframe_optimize
label_desc: Use image node_id 3 for calling a global function with example usage: patch_dask(ray_dask_persist, ray_dask_persist_mixin) without return types