code: def delete_result():
      """clear old result in `.temp`"""
      results = sorted(os.listdir(CACHE_DIR))
      for res in results:
          if int(time.time()) - int(os.path.splitext(res)[0]) > 10000:
              os.remove(os.path.join(CACHE_DIR, res))
  
file_path: PaddleSeg/contrib/SegmentAnything/scripts/amg_paddle.py
imports: import os
  import sys
  import time
  import cv2
  import argparse
  import numpy
  import paddle
  from segment_anything import SamAutomaticMaskGenerator, sam_model_registry
  from paddleseg.utils.visualize import get_pseudo_color_map, get_color_map_list
label_desc: Use image node_id 2 for calling a global function with example usage: delete_result() without return types