def METHOD_NAME(rbd, pool, image, sleep_time):
    """
    Move given image to trash, sleep for given time and restore image back from trash
    Args:
        rbd: RBD object
        pool: pool in which image is present
        image: image to be trashed
        sleep_time: seconds to sleep before restoring
    """
    if rbd.move_image_trash(pool, image):
        log.error(f"Moving image {image} to trash failed")
        raise Exception(f"Moving image {image} to trash failed")
    image_id = rbd.get_image_id(pool, image)
    if not rbd.trash_exist(pool, image):
        log.error("Image is not found in the Trash")
        raise Exception("Image is not found in the Trash")
    else:
        log.info(f"Image {image} moved to trash")
    sleep(sleep_time)
    if rbd.trash_restore(pool, image_id):
        log.error(f"Trash restore failed for image {image}")
        raise Exception(f"Trash restore failed for image {image}")
    return 0