code: def test_alloc(self):
      # Alloc of the sum of x into a vector
      out1d = tensor.alloc(self.x.sum(), self.in_shape[0])
      self.check_rop_lop(out1d, self.in_shape[0])
  
      # Alloc of x into a 3-D tensor, flattened
      out3d = tensor.alloc(
          self.x,
          self.mat_in_shape[0],
          self.mat_in_shape[1],
          self.in_shape[0],
      )
      self.check_rop_lop(
          out3d.flatten(),
          self.mat_in_shape[0]
          * self.mat_in_shape[1]
          * self.in_shape[0],
      )
  
imports: from __future__ import absolute_import, print_function, division
  import unittest
  from theano.tests import unittest_tools
  from theano import function
  import theano
  from theano import tensor
  import itertools
  import numpy
  from theano.gof import Op, Apply
  from theano.gradient import grad_undefined
  from theano.tests.unittest_tools import SkipTest
  from theano.tensor.signal.pool import Pool
  from theano.tensor.nnet import conv, conv2d
label_desc: Use image node_id 23 for calling the test_RopLop obj's underlying member method code with example usage: obj.test_alloc() without return types