code: def downgrade():
      config = Config()
      is_cloud = config.get("cloud", False)
      if is_cloud is True:
          return
  
      storage_path = Path(config.paths["storage"])
      for item in storage_path.iterdir():
          if item.is_dir() and item.name.startswith("predictor_"):
              original_name = item.name
              if (item / original_name).is_file():
                  temp_dir_path = item.parent / f"{original_name}_temp"
                  item.replace(temp_dir_path)
                  (temp_dir_path / original_name).replace(
                      item.parent / original_name
                  )
                  shutil.rmtree(temp_dir_path)
  
imports: from pathlib import Path
  import shutil
  from mindsdb.utilities.config import Config
label_desc: Use image node_id 2 for calling a global function with example usage: downgrade() without return types