code: def test_create_asset(spec_dict, valid):
      if valid:
          AssetSpec(**spec_dict)  #  major_minor is default system
          AssetSpec(**spec_dict, versioning="major_minor")
      else:
          with pytest.raises(errors.InvalidAssetSpecError):
              AssetSpec(**spec_dict)
  
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 9 for calling a global function with example usage: test_create_asset(spec_dict, valid) without return types