code: def _running_process_matches(handle: _nvmlDevice_t) -> bool:
      """Check whether the current process is same as that of handle
      Parameters
      ----------
      handle : _nvmlDevice_t
          NVML handle to CUDA device
      Returns
      -------
      out : bool
          Whether the device handle has a CUDA context on the running process.
      """
      return any(
          os.getpid() == o.pid
          for o in get_compute_running_processes(handle)
      )
  
imports: import dataclasses
  import logging
  import os
  import subprocess
  import sys
  import uuid
  from collections import namedtuple
  from ctypes import c_char, c_char_p, c_int, c_uint, c_ulonglong, byref, create_string_buffer, Structure, POINTER, CDLL
  from typing import List, Tuple, Optional, Union
  from ..utils import parse_readable_size
label_desc: Use image node_id 23 for calling a global function with example usage: _running_process_matches(handle) and returns: any