code: def check_handler_method_params(method: Callable):
      # TODO better error handling. actionable messages
      signature = inspect.signature(method)
      first, *params, last = list(signature.parameters.items())
  
      first_param_name, _ = first
      assert first_param_name == "self"
      for _, param in params:
          assert param.kind not in (
              inspect.Parameter.POSITIONAL_ONLY,
              inspect.Parameter.VAR_POSITIONAL,
          )
      _, last_param = last
      assert last_param.kind == inspect.Parameter.VAR_KEYWORD
  
imports: import inspect
  from typing import Callable, Set
label_desc: Use image node_id 4 for calling a global function with example usage: check_handler_method_params(method) without return types