code: def test_subtensor(self):
      x = theano.tensor.matrix("x")
      subx = x[1:]
      fgraph = theano.FunctionGraph([x], [subx], clone=False)
      shapes = shape_of_variables(fgraph, {x: (10, 10)})
      assert shapes[subx] == (9, 10)
  
file_path: Theano/theano/tensor/tests/test_utils.py
imports: from __future__ import absolute_import, print_function, division
  import unittest
  import numpy
  import theano
  from theano.tensor.utils import hash_from_ndarray, shape_of_variables
label_desc: Use image node_id 2 for calling the Tshape_of_variables obj's underlying member method code with example usage: obj.test_subtensor() without return types