code: def test_check_version_checks_major():
      version = _get_later_major_version()
      with pytest.raises(utils.SockeyeError) as e:
          utils.check_version(version)
      assert "Given major version (%s) does not match major code version (%s)" % (
          version,
          __version__,
      ) == str(
          e.value
      )
  
imports: import gzip
  import math
  import os
  import re
  from tempfile import TemporaryDirectory
  import unittest
  import numpy
  import pytest
  import torch
  from sockeye import __version__
  from sockeye import constants
  from sockeye import utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_check_version_checks_major() without return types