code: def kwargs_not_matching(kwargs_matching, node, effect):
      affected_version = {
          "MISMATCHED": mismatched_version,
          "MISSING": missing_version,
          "KEY_ERROR": {},
          "NONE": unknown_version,
      }[effect]
      kwargs = kwargs_matching
      if node in kwargs["workers"]:
          kwargs["workers"][node] = affected_version
      else:
          kwargs[node] = affected_version
      return kwargs
  
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 5 for calling a global function with example usage: kwargs_not_matching(kwargs_matching, node, effect) and returns: kwargs