code: def testMinMaxLoc(self):
      x = [1]
      i = [2]
      u = [x, i]
      y = [2]
      j = [1]
      v = [y, j]
      res = MPI.MINLOC(u, v)
      self.assertIs(res[0], x)
      self.assertIs(res[1], i)
      res = MPI.MINLOC(v, u)
      self.assertIs(res[0], x)
      self.assertIs(res[1], i)
      res = MPI.MAXLOC(u, v)
      self.assertIs(res[0], y)
      self.assertIs(res[1], j)
      res = MPI.MAXLOC(v, u)
      self.assertIs(res[0], y)
      self.assertIs(res[1], j)
      #
      x = [1]
      i = 0
      u = [x, i]
      y = [1]
      j = 1
      v = [y, j]
      res = MPI.MINLOC(u, v)
      self.assertIs(res[0], x)
      self.assertIs(res[1], i)
      res = MPI.MAXLOC(u, v)
      self.assertIs(res[0], x)
      self.assertIs(res[1], i)
      #
      x = [1]
      i = 1
      u = [x, i]
      y = [1]
      j = 0
      v = [y, j]
      res = MPI.MINLOC(u, v)
      self.assertIs(res[0], y)
      self.assertIs(res[1], j)
      res = MPI.MAXLOC(u, v)
      self.assertIs(res[0], y)
      self.assertIs(res[1], j)
      #
      x = [1]
      i = [0]
      u = [x, i]
      y = [1]
      j = [1]
      v = [y, j]
      res = MPI.MINLOC(u, v)
      self.assertIs(res[0], x)
      self.assertIs(res[1], i)
      res = MPI.MAXLOC(u, v)
      self.assertIs(res[0], x)
      self.assertIs(res[1], i)
      #
      x = [1]
      i = [1]
      u = [x, i]
      y = [1]
      j = [0]
      v = [y, j]
      res = MPI.MINLOC(u, v)
      self.assertIs(res[0], y)
      self.assertIs(res[1], j)
      res = MPI.MAXLOC(u, v)
      self.assertIs(res[0], y)
      self.assertIs(res[1], j)
  
imports: from mpi4py import MPI
  import mpiunittest
label_desc: Use image node_id 7 for calling the TestOp obj's underlying member method code with example usage: obj.testMinMaxLoc() without return types