code: def test_local_driver_overwrite(working_dir):
      driver = LocalStorageDriver(settings={"bucket": working_dir})
      driver.upload_object(
          os.path.join(
              TEST_DIR, "assets", "testdata", "some_data.json"
          ),
          "a/b/c",
      )
      assert os.path.isfile(os.path.join(working_dir, "a", "b", "c"))
      # will remove the a/b/c file
      driver.upload_object(
          os.path.join(
              TEST_DIR, "assets", "testdata", "some_data.json"
          ),
          "a/b/c",
      )
      assert os.path.isfile(os.path.join(working_dir, "a", "b", "c"))
      # will remove the a/b directory
      driver.upload_object(
          os.path.join(
              TEST_DIR, "assets", "testdata", "some_data.json"
          ),
          "a/b",
      )
      assert os.path.isfile(os.path.join(working_dir, "a", "b"))
      # will remove the a/b file
      driver.upload_object(
          os.path.join(
              TEST_DIR, "assets", "testdata", "some_data.json"
          ),
          "a/b/c",
      )
      assert os.path.isfile(os.path.join(working_dir, "a", "b", "c"))
  
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 11 for calling a global function with example usage: test_local_driver_overwrite(working_dir) without return types