code: def check_shm_for_dali(msg):
      shm_paths = ["/dev/shm/", "/run/shm/"]
      for shm_path in shm_paths:
          if os.path.isdir(shm_path):
              shm_handles = os.listdir(shm_path)
              for handle in shm_handles:
                  assert "nvidia_dali_" not in handle, msg.format(
                      shm_path + handle
                  )
  
file_path: DALI/dali/test/python/test_pool_utils.py
imports: import os
  import psutil
  import weakref
label_desc: Use image node_id 4 for calling a global function with example usage: check_shm_for_dali(msg) without return types