class_docstr: Tests resize bicubic ops.
class_docstr_tok: ["Tests","resize","bicubic","ops","."]
code: def testShapeIsCorrectAfterOp(self):
      in_shape = [1, 2, 2, 1]
      out_shape = [1, 4, 6, 1]
  
      x = np.arange(0, 4).reshape(in_shape).astype(np.float32)
  
      for align_corners in [True, False]:
          input_tensor = constant_op.constant(x, shape=in_shape)
          resize_out = image_ops.resize_bicubic(
              input_tensor, out_shape[1:3], align_corners=align_corners
          )
          with self.cached_session():
              self.assertEqual(out_shape, list(resize_out.get_shape()))
              resize_out = self.evaluate(resize_out)
              self.assertEqual(out_shape, list(resize_out.shape))
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  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 test_util
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import gen_image_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import image_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ResizeBicubicOpTestBase obj's underlying member method code with example usage: obj.testShapeIsCorrectAfterOp() without return types