code: def test_partial_guess(self):
      n = 5
      A = np.random.rand(n, n)
      B = np.random.rand(n, n)
  
      res1 = quadratic_assignment(
          A, B, method=self.method, options={"rng": 0}
      )
      guess = np.array([np.arange(5), res1.col_ind]).T
      res2 = quadratic_assignment(
          A,
          B,
          method=self.method,
          options={"rng": 0, "partial_guess": guess},
      )
      fix = [2, 4]
      match = np.array([np.arange(5)[fix], res1.col_ind[fix]]).T
      res3 = quadratic_assignment(
          A,
          B,
          method=self.method,
          options={
              "rng": 0,
              "partial_guess": guess,
              "partial_match": match,
          },
      )
      assert_(res1.nit != n * (n + 1) / 2)
      assert_equal(
          res2.nit, n * (n + 1) / 2
      )  # tests each swap exactly once
      assert_equal(res3.nit, (n - 2) * (n - 1) / 2)
  
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 2 for calling the Test2opt obj's underlying member method code with example usage: obj.test_partial_guess() without return types