code: def _perform_driver_test(driver):
      assert not driver.exists("some/object")
  
      # put an object
      with tempfile.TemporaryDirectory() as tempd:
          with open(os.path.join(tempd, "name"), "w") as fsrc:
              fsrc.write("some contents")
          driver.upload_object(
              os.path.join(tempd, "name"), "some/object"
          )
      assert driver.exists("some/object")
  
      # download an object
      with tempfile.TemporaryDirectory() as tempdir:
          temp_path = os.path.join(tempdir, "test")
          driver.download_object("some/object", temp_path)
          with open(temp_path) as fdst:
              assert fdst.read() == "some contents"
  
      # iterate objects
      assert [x for x in driver.iterate_objects()] == ["some/object"]
  
      # delete the object
      driver.delete_object("some/object")
      assert not driver.exists("some/object")
  
file_path: modelkit/tests/assets/test_drivers.py
imports: import os
  import pickle
  import tempfile
  from typing import Optional
  from modelkit.assets.drivers.abc import StorageDriver, StorageDriverSettings
  from modelkit.assets.drivers.local import LocalStorageDriver
  from tests import TEST_DIR
  from tests.conftest import skip_unless
label_desc: Use image node_id 1 for calling a global function with example usage: _perform_driver_test(driver) without return types