code: def test_version_matches_changelog():
      """
      Tests whether the last version mentioned in CHANGELOG.md matches the sockeye version (sockeye/__init__.py).
      """
      pattern = re.compile(r"""## \[([0-9.]+)\]""")
      changelog = open(
          os.path.join(
              os.path.dirname(
                  os.path.dirname(os.path.dirname(__file__))
              ),
              "CHANGELOG.md",
          )
      ).read()
      last_changelog_version = pattern.findall(changelog)[0]
      assert __version__ == last_changelog_version
  
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 8 for calling a global function with example usage: test_version_matches_changelog() without return types