code: def test_precomputed_affinity(self):
      # Setup precomputed affinity
      aff = affinity.Uniform(self.x).P
      aff *= 10  # rescale
      precomputed_affinity = affinity.PrecomputedAffinities(
          aff, normalize=True
      )
  
      embedding = TSNE().fit(
          affinities=precomputed_affinity, initialization="spectral"
      )
      self.eval_embedding(embedding, self.y, aff.__class__.__name__)
  
imports: import unittest
  from functools import partial
  import numpy
  from scipy.spatial.distance import pdist, squareform, cdist
  from sklearn import datasets
  from sklearn.metrics import accuracy_score
  from sklearn.neighbors import KNeighborsClassifier, NearestNeighbors
  import openTSNE
  from openTSNE import affinity, initialization, nearest_neighbors, TSNEEmbedding
label_desc: Use image node_id 2 for calling the TestUsageWithCustomAffinity obj's underlying member method code with example usage: obj.test_precomputed_affinity() without return types