def warn_experimental(api_name: str) -> None:
    """
    Warns the user that the given API is experimental.
    Make sure that if the API is not experimental anymore, this function call is removed.

    If 'api_name' requires string formatting, use %-formatting for optimization.

    Args:
        api_name: The name of the API that is experimental.
    """
    if api_name not in _EXPERIMENTAL_APIS:
        _EXPERIMENTAL_APIS.add(api_name)
        msg = "'%s' is an EXPERIMENTAL API and is currently not yet stable. Proceed with caution!"
        logger.warning(msg, api_name)
Warns the user that the given API is experimental.
Make sure that if the API is not experimental anymore, this function call is removed.

If 'api_name' requires string formatting, use %-formatting for optimization.

Args:
api_name: The name of the API that is experimental.
src/bentoml/_internal/utils/__init__.py