code: def test_asset_spec_set_latest_version():
      spec = AssetSpec(name="a", versioning="major_minor")
      spec.set_latest_version(["3", "2.1", "1.3"])
      assert spec.version == "3"
  
      spec = AssetSpec(name="a", version="2", versioning="major_minor")
      spec.set_latest_version(["3", "2.1", "2.0", "1.3"])
      assert spec.version == "2.1"
  
      spec = AssetSpec(
          name="a", version="1.1", versioning="major_minor"
      )
      spec.set_latest_version(["3", "2.1", "2.0", "1.3"])
      assert spec.version == "1.3"
  
imports: import os
  import pytest
  import tests
  from modelkit.assets import errors
  from modelkit.assets.settings import AssetSpec
  from modelkit.assets.versioning.major_minor import InvalidMajorVersionError, MajorMinorAssetsVersioningSystem, MajorVersionDoesNotExistError
label_desc: Use image node_id 16 for calling a global function with example usage: test_asset_spec_set_latest_version() without return types