code: def testPartialShapeToTensorMultipleDimensions(self):
      self.assertAllEqual(
          [3, 6],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  tensor_shape.TensorShape([3, 6])
              )
          ),
      )
      self.assertAllEqual(
          [3, 6], self.evaluate(convert.partial_shape_to_tensor((3, 6)))
      )
      self.assertAllEqual(
          [3, 6], self.evaluate(convert.partial_shape_to_tensor([3, 6]))
      )
      self.assertAllEqual(
          [3, 6],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  constant_op.constant([3, 6], dtype=dtypes.int64)
              )
          ),
      )
  
      self.assertAllEqual(
          [3, -1],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  tensor_shape.TensorShape([3, None])
              )
          ),
      )
      self.assertAllEqual(
          [3, -1],
          self.evaluate(convert.partial_shape_to_tensor((3, None))),
      )
      self.assertAllEqual(
          [3, -1],
          self.evaluate(convert.partial_shape_to_tensor([3, None])),
      )
      self.assertAllEqual(
          [3, -1],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  constant_op.constant([3, -1], dtype=dtypes.int64)
              )
          ),
      )
  
      self.assertAllEqual(
          [-1, -1],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  tensor_shape.TensorShape([None, None])
              )
          ),
      )
      self.assertAllEqual(
          [-1, -1],
          self.evaluate(convert.partial_shape_to_tensor((None, None))),
      )
      self.assertAllEqual(
          [-1, -1],
          self.evaluate(convert.partial_shape_to_tensor([None, None])),
      )
      self.assertAllEqual(
          [-1, -1],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  constant_op.constant([-1, -1], dtype=dtypes.int64)
              )
          ),
      )
  
imports: from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.util import convert
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 7 for calling the ConvertTest obj's underlying member method code with example usage: obj.testPartialShapeToTensorMultipleDimensions() without return types