code: def test_input_shape_changes(self):
      workspace.FeedBlob(
          "input_blob",
          np.array(np.random.rand(10, 20, 10), dtype=np.float32),
      )
      net = core.Net("mynet")
      z, _ = net.Reshape(
          "input_blob", ["z_reshape", "dummy_size"], shape=(-1, 10)
      )
      workspace.CreateNet(net)
      workspace.RunNet(net)
      workspace.FeedBlob(
          "input_blob",
          np.array(np.random.rand(10, 40, 10), dtype=np.float32),
      )
      workspace.RunNet(net)
  
imports: import numpy
  from numpy.testing import assert_array_equal
  from caffe2.python import core, workspace
  from caffe2.python.test_util import TestCase
  from caffe2.proto import caffe2_pb2
label_desc: Use image node_id 9 for calling the TestLengthsToShapeOps obj's underlying member method code with example usage: obj.test_input_shape_changes() without return types