code: def test_deterministic():
      seed = np.random.RandomState(42)
  
      x1 = seed.normal(0, 100, (1000, 50))
      x2 = seed.normal(0, 100, (1000, 50))
  
      index1 = NNDescent(x1, random_state=np.random.RandomState(42))
      neighbors1, distances1 = index1.query(x2)
  
      index2 = NNDescent(x1, random_state=np.random.RandomState(42))
      neighbors2, distances2 = index2.query(x2)
  
      np.testing.assert_equal(neighbors1, neighbors2)
      np.testing.assert_equal(distances1, distances2)
  
imports: import os
  import io
  import re
  import pytest
  from contextlib import redirect_stdout
  import numpy
  from sklearn.neighbors import KDTree
  from sklearn.neighbors import NearestNeighbors
  from sklearn.preprocessing import normalize
  import pickle
  import joblib
  import scipy
  from pynndescent import NNDescent, PyNNDescentTransformer
label_desc: Use image node_id 11 for calling a global function with example usage: test_deterministic() without return types