code: def kwargs_transformers(
      f: F[t.Any] | None = None,
      *,
      transformer: F[t.Any],
      pass_click_context: bool = False,
  ) -> F[t.Any]:
      def decorator(_f: F[t.Any]) -> t.Callable[P, t.Any]:
          @functools.wraps(_f)
          def wrapper(*args: P.args, **kwargs: P.kwargs) -> t.Any:
              transformed = {
                  k: transformer(v) for k, v in kwargs.items()
              }
              if pass_click_context:
                  return _f(
                      click.get_current_context(), *args, **transformed
                  )
              return _f(*args, **transformed)
  
          return wrapper
  
      if f is None:
          return decorator
      return decorator(f)
  
imports: from __future__ import annotations
  import difflib
  import functools
  import logging
  import os
  import re
  import time
  import typing
  import attr
  import click
  import click_option_group
  from click import ClickException
  from click.exceptions import UsageError
label_desc: Use image node_id 1 for calling a global function with example usage: kwargs_transformers(f) and returns: decorator, wrapper, decorator, _f, _f