code: def test_scalar_to_tensor(self):
      old_shape = ()
      new_shape = [1, -1]
      expected_new_shape = [1, 1]
      _test_reshape_output_and_gradient(
          old_shape=old_shape,
          new_shape=new_shape,
          expected_shape=expected_new_shape,
      )
  
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 14 for calling the TestLengthsToShapeOps obj's underlying member method code with example usage: obj.test_scalar_to_tensor() without return types