code: def _erase_dir(dir):
      from os import listdir, unlink, rmdir
      from os.path import join
  
      for name in listdir(dir):
          unlink(join(dir, name))
      rmdir(dir)
  
imports: import re
  import os
  import sys
  from dataclasses import dataclass
  from typing import List, Optional, Tuple
  import pyopencl._cl
  import logging
  import hashlib
label_desc: Use image node_id 1 for calling a global function with example usage: _erase_dir(dir) without return types