code: def test_MatrixSlice():
      cache = {}
  
      n = sy.Symbol("n", integer=True)
      X = sy.MatrixSymbol("X", n, n)
  
      Y = X[1:2:3, 4:5:6]
      Yt = aesara_code_(Y, cache=cache)
  
      s = ScalarType("int64")
      assert tuple(Yt.owner.op.idx_list) == (
          slice(s, s, s),
          slice(s, s, s),
      )
      assert Yt.owner.inputs[0] == aesara_code_(X, cache=cache)
      # == doesn't work in Aesara like it does in SymPy. You have to use
      # equals.
      assert all(Yt.owner.inputs[i].data == i for i in range(1, 7))
  
      k = sy.Symbol("k")
      aesara_code_(k, dtypes={k: "int32"})
      start, stop, step = 4, k, 2
      Y = X[start:stop:step]
      Yt = aesara_code_(Y, dtypes={n: "int32", k: "int32"})
  
imports: import logging
  from sympy.external import import_module
  from sympy.testing.pytest import raises, SKIP
  from sympy.utilities.exceptions import ignore_warnings
  import sympy
  from sympy.core.singleton import S
  from sympy.abc import x, y, z, t
  from sympy.printing.aesaracode import aesara_code, dim_handling, aesara_function
label_desc: Use image node_id 33 for calling a global function with example usage: test_MatrixSlice() without return types