code: def test_affinity_matrix_matches_precomputed_distance_affinity_matrix_random(
      self,
  ):
      x = np.random.normal(0, 1, (200, 5))
      d = squareform(pdist(x))
  
      for method_name, cls in AFFINITY_CLASSES:
          aff1 = cls(d, metric="precomputed")
          aff2 = cls(x, metric="euclidean")
  
          np.testing.assert_almost_equal(
              aff1.P.toarray(), aff2.P.toarray(), err_msg=method_name
          )
  
imports: import logging
  import unittest
  from functools import partial
  import numpy
  from scipy.spatial.distance import squareform, pdist
  from sklearn import datasets
  from sklearn.model_selection import train_test_split
  from openTSNE import affinity, nearest_neighbors
label_desc: Use image node_id 5 for calling the TestAffinityMatrixCorrectness obj's underlying member method code with example usage: obj.test_affinity_matrix_matches_precomputed_distance_affinity_matrix_random() without return types