code: def test_override_assets_dir(assetsmanager_settings):
      class TestModel(Model):
          def _predict(self, item, **kwargs):
              return self.asset_path
  
      model_library = ModelLibrary(
          required_models=["my_model", "my_override_model"],
          configuration={
              "my_model": ModelConfiguration(
                  model_type=TestModel, asset="category/asset"
              ),
              "my_override_model": ModelConfiguration(
                  model_type=TestModel, asset="category/override-asset"
              ),
          },
          assetsmanager_settings=assetsmanager_settings,
      )
  
      prediction = model_library.get("my_model").predict({})
      assert prediction.endswith(
          os.path.join("category", "asset", "1.0")
      )
  
      prediction = model_library.get("my_override_model").predict({})
      assert prediction.endswith(
          os.path.join("category", "override-asset", "0.0")
      )
  
      model_library_override = ModelLibrary(
          required_models=["my_model", "my_override_model"],
          configuration={
              "my_model": ModelConfiguration(
                  model_type=TestModel, asset="category/asset"
              ),
              "my_override_model": ModelConfiguration(
                  model_type=TestModel, asset="category/override-asset"
              ),
          },
          settings={
              "override_assets_dir": os.path.join(
                  TEST_DIR, "testdata", "override-assets-dir"
              ),
              "lazy_loading": True,
          },
          assetsmanager_settings=assetsmanager_settings,
      )
  
      prediction = model_library_override.get("my_model").predict({})
      assert prediction.endswith(
          os.path.join("category", "asset", "1.0")
      )
  
      prediction = model_library_override.get(
          "my_override_model"
      ).predict({})
      assert prediction.endswith(
          os.path.join("category", "override-asset", "0.0")
      )
  
imports: import asyncio
  import os
  import pytest
  from modelkit.assets.errors import AssetDoesNotExistError, InvalidAssetSpecError
  from modelkit.core import errors
  from modelkit.core.library import ConfigurationNotFoundException, ModelLibrary, download_assets, load_model
  from modelkit.core.model import Asset, AsyncModel, Model
  from modelkit.core.model_configuration import ModelConfiguration, _configurations_from_objects, configure, list_assets
  from modelkit.core.settings import LibrarySettings
  from tests import TEST_DIR, testmodels
  from tests.assets.test_versioning import test_versioning
label_desc: Use image node_id 19 for calling a global function with example usage: test_override_assets_dir(assetsmanager_settings) and returns: self