class_docstr: Tests for reshaping 0-sized SparseTensors, compared w/ dense tensors.
class_docstr_tok: ["Tests","for","reshaping","0-sized","SparseTensors",",","compared","w\/","dense","tensors","."]
code: def testImpliedDimTogetherWithZeroDimCausesError(self):
      # NOTE: When implied dimensions and zero dimensions coexist in the target
      # shape, the behavior currently differs between sparse and regular tensors.
      with self.assertRaises(errors.InvalidArgumentError):
          self._MakeAndReshapeTensor("sparse", [0], [-1, 0])
      with self.assertRaises(errors.InvalidArgumentError):
          self._MakeAndReshapeTensor("sparse", [1, 0], [-1, 0])
      with self.assertRaises(errors.InvalidArgumentError):
          self._MakeAndReshapeTensor("sparse", [1, 2, 0], [2, -1, 0])
      with self.assertRaises(errors.InvalidArgumentError):
          self._MakeAndReshapeTensor(
              "sparse", [1, 2, 3, 0], [2, 0, -1, 3]
          )
  
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 sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the EmptySparseTensorReshapeTest obj's underlying member method code with example usage: obj.testImpliedDimTogetherWithZeroDimCausesError() without return types