code: def local_client(*args, **kwargs):
      warnings.warn("local_client has moved to worker_client")
      return worker_client(*args, **kwargs)
  
file_path: distributed/distributed/worker_client.py
imports: from __future__ import annotations
  import contextlib
  import warnings
  import dask
  from distributed.metrics import time
  from distributed.threadpoolexecutor import rejoin, secede
  from distributed.worker import get_client, get_worker, thread_state
  from distributed.worker_state_machine import SecedeEvent
label_desc: Use image node_id 2 for calling a global function with example usage: local_client() and returns: worker_client