code: def clear_old_cache(self):
      with FileLock(self.path):
          # buffer to delete, to not run delete on every adding
          buffer_size = 5
  
          if self.max_size is None:
              return
  
          cur_count = len(os.listdir(self.path))
  
          if cur_count > self.max_size + buffer_size:
              try:
                  files = sorted(
                      Path(self.path).iterdir(), key=os.path.getmtime
                  )
                  for file in files[: cur_count - self.max_size]:
                      self.delete_file(file)
              except FileNotFoundError:
                  pass
  
imports: import os
  import time
  from abc import ABC
  from pathlib import Path
  import hashlib
  import typing
  import pandas
  import walrus
  from mindsdb.utilities.config import Config
  from mindsdb.utilities.json_encoder import CustomJSONEncoder
  from mindsdb.interfaces.storage.fs import FileLock
  from mindsdb.utilities.context import context
label_desc: Use image node_id 2 for calling the FileCache obj's underlying member method code with example usage: obj.clear_old_cache() without return types