code: def _check_major_version(major_version, minor_version):
      if minor_version and not major_version:
          raise errors.InvalidVersionError(
              "Cannot specify a minor version without a major version."
          )
  
imports: import re
  import typing
  from modelkit.assets import errors
  from modelkit.assets.versioning import versioning
label_desc: Use image node_id 7 for calling the MajorMinorAssetsVersioningSystem obj's underlying member method code with example usage: obj._check_major_version(major_version, minor_version) without return types