code: def testUnsortedIndicesWithWithoutValidation(self):
      error_msg = (
          r"indices\[1\] is out of order"
          if test_util.is_gpu_available()
          else r"indices\[1\] = \[1\] is out of order"
      )
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), error_msg
      ):
          self.evaluate(
              sparse_ops.sparse_to_dense(
                  [[2], [1]], [5], [-1.0, 1.0], 0.0
              )
          )
      # Disable checks
      self.evaluate(
          sparse_ops.sparse_to_dense(
              [[2], [1]], [5], [-1.0, 1.0], 0.0, validate_indices=False
          )
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  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 sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 17 for calling the SparseToDenseTest obj's underlying member method code with example usage: obj.testUnsortedIndicesWithWithoutValidation() without return types