code: def _running_process_matches(handle):
      """Check whether the current process is same as that of handle
  
      Parameters
      ----------
      handle : pyvnml.nvml.LP_struct_c_nvmlDevice_t
          NVML handle to CUDA device
  
      Returns
      -------
      out : bool
          Whether the device handle has a CUDA context on the running process.
      """
      init_once()
      if hasattr(pynvml, "nvmlDeviceGetComputeRunningProcesses_v2"):
          running_processes = (
              pynvml.nvmlDeviceGetComputeRunningProcesses_v2(handle)
          )
      else:
          running_processes = (
              pynvml.nvmlDeviceGetComputeRunningProcesses(handle)
          )
      return any(os.getpid() == proc.pid for proc in running_processes)
  
imports: from __future__ import annotations
  import os
  from enum import IntEnum, auto
  from platform import uname
  from typing import NamedTuple
  from packaging.version import parse
  import dask
label_desc: Use image node_id 6 for calling a global function with example usage: _running_process_matches(handle) and returns: any