code: def test_that_to_new_transform_matrix_treats_each_datapoint_separately(
      self,
  ):
      x_train, x_test = train_test_split(
          self.iris, test_size=0.33, random_state=42
      )
  
      for method_name, cls in AFFINITY_CLASSES:
          aff: affinity.Affinities = cls(x_train)
          P = aff.to_new(x_test)
          np.testing.assert_allclose(
              np.asarray(np.sum(P, axis=1)).ravel(),
              np.ones(len(x_test)),
              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 3 for calling the TestAffinityMatrixCorrectness obj's underlying member method code with example usage: obj.test_that_to_new_transform_matrix_treats_each_datapoint_separately() without return types