code: def test_input_shape_changes(self):
      device_opt = core.DeviceOption(caffe2_pb2.IDEEP, 0)
      with core.DeviceScope(device_opt):
          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)
  
file_path: pytorch/caffe2/python/ideep/reshape_op_test.py
imports: from caffe2.python.test_util import TestCase
  from caffe2.proto import caffe2_pb2
  import unittest
  import numpy
  from caffe2.python import core, workspace
label_desc: Use image node_id 9 for calling the TestReShapeOps obj's underlying member method code with example usage: obj.test_input_shape_changes() without return types