code: def testPartialShapeToTensorScalar(self):
      self.assertAllEqual(
          [],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  tensor_shape.TensorShape([])
              )
          ),
      )
      self.assertAllEqual(
          [], self.evaluate(convert.partial_shape_to_tensor(()))
      )
      self.assertAllEqual(
          [], self.evaluate(convert.partial_shape_to_tensor([]))
      )
      self.assertAllEqual(
          [],
          self.evaluate(
              convert.partial_shape_to_tensor(
                  constant_op.constant([], 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 8 for calling the ConvertTest obj's underlying member method code with example usage: obj.testPartialShapeToTensorScalar() without return types