code: def _check_version_number(minor_or_major):
      if minor_or_major and not re.fullmatch(
          "^[0-9]+$", minor_or_major
      ):
          raise errors.InvalidVersionError(
              f"Invalid version `{minor_or_major}` is not a number"
          )
  
imports: import re
  import typing
  from modelkit.assets import errors
  from modelkit.assets.versioning import versioning
label_desc: Use image node_id 8 for calling the MajorMinorAssetsVersioningSystem obj's underlying member method code with example usage: obj._check_version_number(minor_or_major) without return types