def METHOD_NAME(
    self, item: Any, exception: BaseException, response: Response, spider: Spider
) -> dict:
    """Logs a message when an item causes an error while it is passing
    through the item pipeline.
    .. versionadded:: 2.0
    """
    return {
        "level": logging.ERROR,
        "msg": ITEMERRORMSG,
        "args": {
            "item": item,
        },
    }