code: def test_make_slice_merge():
      # In the past, this was crahsing during compilation.
      i = iscalar()
      s1 = make_slice(0, i)
      s2 = make_slice(0, i)
      f = pytensor.function([i], [s1, s2])
      nodes = f.maker.fgraph.apply_nodes
      assert len([n for n in nodes if isinstance(n.op, MakeSlice)]) == 1
  
file_path: pytensor/tests/tensor/test_type_other.py
imports: import pytensor
  from pytensor import as_symbolic
  from pytensor.graph.basic import Constant
  from pytensor.tensor.math import argmax
  from pytensor.tensor.type import iscalar, vector
  from pytensor.tensor.type_other import MakeSlice, NoneConst, NoneTypeT, SliceConstant, SliceType, make_slice
label_desc: Use image node_id 2 for calling a global function with example usage: test_make_slice_merge() without return types