code: def test_in_place(self):
      _test_reshape_output_and_gradient(
          old_shape=(4, 2, 1), new_shape=(-1, 8), in_place=True
      )
      _test_reshape_output_and_gradient(
          old_shape=(4, 2, 1),
          new_shape=(-1, 8),
          in_place=True,
          arg_shape=False,
      )
  
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 5 for calling the TestLengthsToShapeOps obj's underlying member method code with example usage: obj.test_in_place() without return types