docstr: frame should be constant foldable for constant inputs.
docstr_tok: ["frame","should","be","constant","foldable","for","constant","inputs","."]
code: def test_constant_folding(self):
      """frame should be constant foldable for constant inputs."""
      if context.executing_eagerly():
          return
      for pad_end in [True, False]:
          g = ops.Graph()
          with g.as_default():
              frame_length, frame_step = 32, 16
              signal_shape = (2, 128)
              signal = array_ops.ones(signal_shape)
              frames = shape_ops.frame(
                  signal, frame_length, frame_step, pad_end=pad_end
              )
              rewritten_graph = test_util.grappler_optimize(g, [frames])
              self.assertEqual(1, len(rewritten_graph.node))
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.kernel_tests.signal import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.signal import shape_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 14 for calling the FrameTest obj's underlying member method code with example usage: obj.test_constant_folding() without return types