docstr: Tests that positive and negative zeros sort correctly.
docstr_tok: ["Tests","that","positive","and","negative","zeros","sort","correctly","."]
code: def testTopKZeros(self):
      """Tests that positive and negative zeros sort correctly."""
      supported_types = set(
          [
              dtypes.bfloat16.as_numpy_dtype,
              np.float16,
              np.float32,
              np.float64,
          ]
      )
      for dtype in supported_types.intersection(self.numeric_types):
          with self.session() as sess:
              p = array_ops.placeholder(dtype)
              with self.test_scope():
                  topk = nn_ops.top_k(p, k=4)
              results = sess.run(
                  topk,
                  {
                      p: np.array(
                          [0.0, -0.0, 0.0, 3.0, -0.0, -4.0, 0.0, -0.0],
                          dtype=dtype,
                      )
                  },
              )
              self.assertAllEqual(
                  np.array([3.0, 0.0, 0.0, 0.0], dtype=dtype),
                  results[0],
              )
              self.assertEqual(list([3, 0, 2, 6]), list(results[1]))
  
imports: import unittest
  from absl.testing import parameterized
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.compiler.tf2xla.python import xla
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import function
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import sort_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 13 for calling the XlaSortOpTest obj's underlying member method code with example usage: obj.testTopKZeros() without return types