code: def test_backwards_compatibility():
      """
      This test checks whether the current code can still produce translations with a model that was trained with the
      same major version.
      """
      import sockeye.translate
  
      with TemporaryDirectory() as work_dir:
          output_file = os.path.join(work_dir, "out")
          params = """{sockeye} --use-cpu --models {model} --input {input} --output {output} """.format(
              sockeye=sockeye.translate.__file__,
              model="test/data/model_3.0.x",
              input="test/data/model_3.0.x/model_input",
              output=output_file,
          )
          logger.info("Translating with params %s", params)
          with patch.object(sys, "argv", params.split()):
              sockeye.translate.main()
  
          with open(output_file) as model_out:
              assert model_out.read() == EXPECTED_OUTPUT
  
imports: import logging
  import os
  import sys
  from tempfile import TemporaryDirectory
  import pytest
  from unittest.mock import patch
label_desc: Use image node_id 1 for calling a global function with example usage: test_backwards_compatibility() without return types