code: def test_version_mismatch(node, effect, kwargs_not_matching, pattern):
      column_matching = {"source": 1, "scheduler": 2, "workers": 3}
      msg = error_message(**kwargs_not_matching)
      i = column_matching.get(node, 3)
      assert "Mismatched versions found" in msg["warning"]
      assert "distributed" in msg["warning"]
      assert (
          pattern
          in re.search(
              r"distributed\s+(?:(?:\|[^|\r\n]*)+\|(?:\r?\n|\r)?)+",
              msg["warning"],
          )
          .group(0)
          .split("|")[i]
          .strip()
      )
  
imports: from __future__ import annotations
  import re
  import sys
  import pytest
  import tornado
  from distributed import Client, Worker
  from distributed.utils_test import gen_cluster
  from distributed.versions import error_message, get_versions
label_desc: Use image node_id 7 for calling a global function with example usage: test_version_mismatch(node, effect, kwargs_not_matching, pattern) without return types