code: def clear_memory_all_gpus():
      """Clear memory of all GPUs."""
      try:
          for gpu in cuda.gpus:
              with gpu:
                  cuda.current_context().deallocations.clear()
      except CudaSupportError:
          logger.info("No CUDA available")
  
file_path: recommenders/recommenders/utils/gpu_utils.py
imports: import sys
  import os
  import glob
  import logging
  from numba import cuda
  from numba.cuda.cudadrv.error import CudaSupportError
label_desc: Use image node_id 3 for calling a global function with example usage: clear_memory_all_gpus() without return types