code: def _test_check_version_compatibility():
      meta = Meta(version=f"{_MAJOR}.{int(_MINOR) + 1}.0")
      with pytest.warns(
          UserWarning, match="trained on a newer version"
      ):
          _check_version_compatibility("model.tar.gz", meta)
  
      meta = Meta(version="1.2.0")
      with pytest.warns(UserWarning, match="trained on version"):
          _check_version_compatibility("model.tar.gz", meta)
  
imports: import copy
  import os
  import tempfile
  import tarfile
  import pytest
  import torch
  from allennlp.version import _MAJOR, _MINOR
  from allennlp.commands.train import train_model
  from allennlp.common import Params
  from allennlp.common.meta import Meta
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.dataset_readers import DatasetReader
  from allennlp.models.archival import archive_model, load_archive, CONFIG_NAME, _check_version_compatibility
label_desc: Use image node_id 2 for calling a global function with example usage: _test_check_version_compatibility() without return types