code: def test_string_asset_spec(s, spec):
      assert AssetSpec.from_string(s) == AssetSpec(**spec)
      assert AssetSpec.from_string(
          s, versioning="major_minor"
      ) == AssetSpec(versioning="major_minor", **spec)
  
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 15 for calling a global function with example usage: test_string_asset_spec(s, spec) without return types