code: def test_deterministic(self):
      # np.random.seed(0) executes before every method
      n = 20
  
      A = np.random.rand(n, n)
      B = np.random.rand(n, n)
      res1 = quadratic_assignment(A, B, method=self.method)
  
      np.random.seed(0)
  
      A = np.random.rand(n, n)
      B = np.random.rand(n, n)
      res2 = quadratic_assignment(A, B, method=self.method)
  
      assert_equal(res1.nit, res2.nit)
  
imports: import pytest
  import numpy
  from scipy.optimize import quadratic_assignment, OptimizeWarning
  from scipy.optimize._qap import _calc_score
  from numpy.testing import assert_equal, assert_, assert_warns
label_desc: Use image node_id 1 for calling the Test2opt obj's underlying member method code with example usage: obj.test_deterministic() without return types