code: def check_version_valid(cls, name: str):
      if name and not re.fullmatch(GENERIC_ASSET_VERSION_RE, name):
          raise errors.InvalidVersionError(
              f"Invalid version `{name}`, can only contain [a-zA-Z0-9], [-._]"
          )
  
file_path: modelkit/modelkit/assets/settings.py
imports: import os
  import re
  import typing
  from modelkit.assets import errors
  from modelkit.assets.versioning.major_minor import MajorMinorAssetsVersioningSystem
  from modelkit.assets.versioning.simple_date import SimpleDateAssetsVersioningSystem
  from modelkit.assets.versioning.versioning import AssetsVersioningSystem
label_desc: Use image node_id 7 for calling the AssetSpec obj's underlying member method code with example usage: obj.check_version_valid(cls, name) without return types