code: def __clean_dir(self):
      files = os.listdir(self.save_dir)
  
      if self.rank == 0:
          return
  
      for f in files:
          if str(self.process) in f:
              os.remove(os.path.join(self.save_dir, f))
  
imports: import contextlib
  import json
  import os
  import shutil
  from datetime import datetime
  import numpy
  import pandas
  from imageio import imwrite
  from tensorboard.compat.proto.event_pb2 import Event
  from tensorboard.compat.proto.event_pb2 import SessionLog
  from torch.utils.tensorboard import SummaryWriter, FileWriter
label_desc: Use image node_id 4 for calling the Experiment obj's underlying member method code with example usage: obj.__clean_dir() without return types