def METHOD_NAME(execution_path: Path) -> bool:
    """
    The DiskQueue.close() method remove junk metadata from disk when queue is empty.
    """
    with DiskQueue(execution_path, lambda x: x.to_dict(), Operation.from_dict, threading.RLock()) as disk_queue:
        return disk_queue.is_empty()