code: def test_slice():
      t = ones((100, 200, 300))
      t2 = t[10:30, 199:, -30:303]
      assert t2.shape == (20, 1, 30)
  
      t3 = t[10:90:4, 20:80:5]
      s1 = len(list(range(100))[10:90:4])
      s2 = len(list(range(200))[20:80:5])
      assert t3.shape == (s1, s2, 300)
  
imports: import numpy
  import pytest
  from ....config import option_context
  from ....core import tile
  from ...base.broadcast_to import TensorBroadcastTo
  from ...datasource import ones, tensor, array, empty
  from ...datasource.ones import TensorOnes
  from ...merge.concatenate import TensorConcatenate
  from ..None import choose, unravel_index, nonzero, compress, fill_diagonal
  from ..setitem import TensorIndexSetValue
label_desc: Use image node_id 2 for calling a global function with example usage: test_slice() without return types