code: def pause(profile_process="worker"):
      """Pause profiling.
  
      Parameters
      ----------
      profile_process : string
          whether to profile kvstore `server` or `worker`.
          server can only be profiled when kvstore is of type dist.
          if this is not passed, defaults to `worker`
      """
      profile_process2int = {"worker": 0, "server": 1}
      check_call(
          _LIB.MXProcessProfilePause(
              int(1),
              profile_process2int[profile_process],
              profiler_kvstore_handle,
          )
      )
  
imports: import ctypes
  import contextlib
  import contextvars
  import warnings
  from .base import _LIB, check_call, c_str, ProfileHandle, c_str_array, py_str, KVStoreHandle
label_desc: Use image node_id 9 for calling a global function with example usage: pause(profile_process) without return types