code: def keyword_only(func):
      """
      A decorator that forces keyword arguments in the wrapped method.
      """
  
      @wraps(func)
      def wrapper(*args, **kwargs):
          if len(args) > 0:
              raise TypeError(
                  f"Method {func.__name__} only takes keyword arguments."
              )
          return func(**kwargs)
  
      notice = ".. Note:: This method requires all argument be specified by keyword.\n"
      wrapper.__doc__ = (
          notice + wrapper.__doc__ if wrapper.__doc__ else notice
      )
      return wrapper
  
file_path: mlflow/mlflow/utils/annotations.py
imports: import inspect
  import types
  import warnings
  from functools import wraps
  from typing import Any, Callable, TypeVar, Union
label_desc: Use image node_id 5 for calling a global function with example usage: keyword_only(func) and returns: wrapper, func