code: def test_python_mismatch(kwargs_matching, node):
      column_matching = {"source": 1, "scheduler": 2, "workers": 3}
      i = column_matching.get(node, 3)
      mismatch_version = "0.0.0"
      kwargs = kwargs_matching
      if node in kwargs["workers"]:
          kwargs["workers"][node]["packages"][
              "python"
          ] = mismatch_version
      else:
          kwargs[node]["packages"]["python"] = mismatch_version
      msg = error_message(**kwargs)
      assert "Mismatched versions found" in msg["warning"]
      assert "python" in msg["warning"]
      assert (
          "0.0.0"
          in re.search(
              r"python\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 10 for calling a global function with example usage: test_python_mismatch(kwargs_matching, node) without return types