def METHOD_NAME(datasets, node):
    api = client.CoreV1Api()
    try:
        latestNode = api.read_node(node.metadata.name)
        # print(latestNode)
    except ApiException as e:
        print("Exception when calling CoreV1Api->read_node: %s\n" % e)
        return False
    labels = latestNode.metadata.labels
    dataNumKey = "fluid.io/dataset-num"
    alluxioKeyPrefix = "fluid.io/s-alluxio-default-"
    datasetKeyPrefix = "fluid.io/s-default-"
    # check dataset number label
    # print(labels)
    if dataNumKey not in labels or labels[dataNumKey] != str(len(datasets)):
        return False
    # check alluxio label
    for dataset in datasets:
        alluxioKey = alluxioKeyPrefix + dataset
        datasetKey = datasetKeyPrefix + dataset
        if alluxioKey not in labels or labels[alluxioKey] != "true":
            return False
        if datasetKey not in labels or labels[datasetKey] != "true":
            return False
    return True