code: def simultaneous_work_items_on_local_access(dev):
      """Return the number of work items that access local
      memory simultaneously and thereby may conflict with
      each other.
      """
      nv_compute_cap = nv_compute_capability(dev)
  
      if nv_compute_cap is not None:
          if nv_compute_cap < (2, 0):
              return 16
          else:
              if nv_compute_cap >= (3, 0):
                  from warnings import warn
  
                  warn(
                      f"Wildly guessing conflicting local access size on '{dev}'",
                      CLCharacterizationWarning,
                      stacklevel=2,
                  )
  
              return 32
  
      if dev.type & cl.device_type.GPU:
          from warnings import warn
  
          warn(
              f"Wildly guessing conflicting local access size on '{dev}'",
              CLCharacterizationWarning,
              stacklevel=2,
          )
          return 16
      elif dev.type & cl.device_type.CPU:
          return 1
      else:
          from warnings import warn
  
          warn(
              f"Wildly guessing conflicting local access size on '{dev}'",
              CLCharacterizationWarning,
              stacklevel=2,
          )
          return 16
  
imports: import pyopencl
  from pytools import memoize
  from typing import Dict, Optional, Tuple
label_desc: Use image node_id 6 for calling a global function with example usage: simultaneous_work_items_on_local_access(dev) and returns: int, int, int, int, int