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