code: def test_versions_messages(wandb_init, capsys, version, message):
      with mock.patch("wandb.__version__", version):
          run = wandb_init(settings=dict(console="off"))
          run.finish()
          assert message in capsys.readouterr().err
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_wandb_integration.py
imports: import importlib
  import os
  import shutil
  import time
  from unittest import mock
  import pytest
  import wandb
  import wandb.env
label_desc: Use image node_id 8 for calling a global function with example usage: test_versions_messages(wandb_init, capsys, version, message) without return types