code: def on_exit(server):
      # delete tmp dir
      print("Shutting down server ...")
      print("Deleteing tmp directory ...")
      shutil.rmtree("tmp/", ignore_errors=True)
      print("Tmp directory deleted !")
  
label_desc: Use image node_id 1 for calling a global function with example usage: on_exit(server) without return types