code: def test_download_assets_version(
      version_asset_name,
      version_1,
      version_2,
      versioning,
      assetsmanager_settings,
      monkeypatch,
  ):
      if versioning:
          monkeypatch.setenv(
              "MODELKIT_ASSETS_VERSIONING_SYSTEM", versioning
          )
  
      class SomeModel(Asset):
          CONFIGURATIONS = {
              "model0": {
                  "asset": f"category/{version_asset_name}:{version_1}"
              }
          }
  
      model_assets, assets_info = download_assets(
          assetsmanager_settings=assetsmanager_settings,
          models=[SomeModel],
      )
      assert model_assets["model0"] == {
          f"category/{version_asset_name}:{version_1}"
      }
      assert (
          assets_info[
              f"category/{version_asset_name}:{version_1}"
          ].version
          == version_1
      )
  
      class SomeModel(Asset):
          CONFIGURATIONS = {
              "model0": {"asset": f"category/{version_asset_name}"}
          }
  
      model_assets, assets_info = download_assets(
          assetsmanager_settings=assetsmanager_settings,
          models=[SomeModel],
      )
      assert model_assets["model0"] == {
          f"category/{version_asset_name}"
      }
      assert (
          assets_info[f"category/{version_asset_name}"].version
          == version_2
      )
  
      if versioning in (None, "major_minor"):
  
          class SomeModel(Asset):
              CONFIGURATIONS = {"model0": {"asset": "category/asset:0"}}
  
          model_assets, assets_info = download_assets(
              assetsmanager_settings=assetsmanager_settings,
              models=[SomeModel],
          )
          assert model_assets["model0"] == {"category/asset:0"}
          assert assets_info["category/asset:0"].version == "0.1"
  
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 11 for calling a global function with example usage: test_download_assets_version(version_asset_name, version_1, version_2, versioning, assetsmanager_settings, monkeypatch) without return types