code: def nn_accuracy(true_nn, embd_nn):
      num_correct = 0.0
      for i in range(true_nn.shape[0]):
          num_correct += np.sum(np.in1d(true_nn[i], embd_nn[i]))
      return num_correct / true_nn.size
  
file_path: umap/umap/tests/test_aligned_umap.py
imports: import pytest
  from umap import AlignedUMAP
  from sklearn.metrics import pairwise_distances
  from sklearn.cluster import KMeans
  import numpy
  from sklearn.metrics import adjusted_rand_score
label_desc: Use image node_id 1 for calling a global function with example usage: nn_accuracy(true_nn, embd_nn) and returns: unknown