code: def __init__(self, cleanup_m, path):
      from os import mkdir
  
      self.path = path
      try:
          mkdir(self.path)
          cleanup_m.register(self)
          self.existed = False
      except OSError:
          self.existed = True
  
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 to create a new ModuleCacheDirManager object from inherited base classes: CleanupBase with example: obj = ModuleCacheDirManager(cleanup_m, path)