code: def test_check_version_valid(version, valid):
      if valid:
          SimpleDateAssetsVersioningSystem.check_version_valid(version)
          assert SimpleDateAssetsVersioningSystem().is_version_valid(
              version
          )
      else:
          with pytest.raises(errors.InvalidVersionError):
              SimpleDateAssetsVersioningSystem.check_version_valid(
                  version
              )
          assert (
              not SimpleDateAssetsVersioningSystem().is_version_valid(
                  version
              )
          )
  
imports: import json
  import os
  import time
  import pytest
  from test_major_minor_versioning import get_string_spec
  import modelkit
  import tests
  from modelkit.assets import errors
  from modelkit.assets.settings import AssetSpec
  from modelkit.assets.versioning.simple_date import SimpleDateAssetsVersioningSystem
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_version_valid(version, valid) without return types