code: def check_kwargs(kwargs):
      """
      Check that no additional kwargs are passed, i.e. the kwargs dict is empty.
      Raises an exception with helpful suggestions to fix the issue.
  
      Parameters
      ----------
      kwargs: optional
          Keyword arguments.
  
      Returns
      -------
      None
      """
      if kwargs:
          raise ValueError(
              f"Unexpected keyword arguments encountered: {kwargs}. "
              "To ensure proper usage, please refer to the 'get_params' method of the initialised metric instance "
              "or consult the Quantus documentation. Avoid passing extraneous keyword arguments. "
              "Ensure that your metric arguments are correctly structured, particularly 'normalise_func_kwargs', "
              "'explain_func_kwargs', and 'model_predict_kwargs'. Additionally, always verify for any typos."
          )
  
file_path: Quantus/quantus/helpers/warn.py
imports: import time
  import warnings
  import numpy
  from quantus.helpers.utils import get_name
label_desc: Use image node_id 1 for calling a global function with example usage: check_kwargs(kwargs) without return types