code: def testPartialShapeInference(self):
      z = array_ops.zeros((1, 2, 3))
      self.assertAllEqual(z.get_shape().as_list(), [1, 2, 3])
  
      m1 = array_ops.slice(z, [0, 0, 0], [-1, -1, -1])
      self.assertAllEqual(m1.get_shape().as_list(), [1, 2, 3])
  
      m2 = array_ops.slice(
          z, [0, 0, 0], [constant_op.constant(1) + 0, 2, -1]
      )
      self.assertAllEqual(m2.get_shape().as_list(), [1, 2, 3])
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  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 gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 16 for calling the SliceTest obj's underlying member method code with example usage: obj.testPartialShapeInference() without return types