code: def testSlicedPartialShapeInference(self):
      @def_function.function(autograph=False)
      def g(x):
          return array_ops.zeros([array_ops.shape(x)[0]])
  
      conc = g.get_concrete_function(tensor_spec.TensorSpec([10, None]))
      self.assertAllEqual(conc.output_shapes.as_list(), [10])
  
imports: from tensorflow.core.config import flags
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the ArrayOpTest obj's underlying member method code with example usage: obj.testSlicedPartialShapeInference() and returns: array_ops