def METHOD_NAME(ctx, op):
    if op.vineyard_socket is None:  # pragma: no cover
        storage_backend = ctx.get_storage_info(level=StorageLevel.MEMORY)
        if storage_backend.get("name", None) == "vineyard":
            return storage_backend["socket"]
        else:
            return op.vineyard_socket
    else:
        return op.vineyard_socket