code: def test_parse_version(version, valid, values):
      if version is None:
          return
  
      if valid and version != "":
          assert (
              MajorMinorAssetsVersioningSystem._parse_version(version)
              == values
          )
      else:
          with pytest.raises(errors.InvalidVersionError):
              MajorMinorAssetsVersioningSystem._parse_version(version)
  
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 1 for calling a global function with example usage: test_parse_version(version, valid, values) without return types