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