code: def test_multi_slice_index(ant, sphere, uniform, airplane, tetbeam):
      multi = multi_from_datasets(
          ant, sphere, uniform, airplane, tetbeam
      )
      # Now check everything
      sub = multi[0:3]
      assert len(sub) == 3
      for i in range(len(sub)):
          assert sub[i] is multi[i]
          assert sub.get_block_name(i) == multi.get_block_name(i)
      sub = multi[0:-1]
      assert len(sub) + 1 == len(multi)
      for i in range(len(sub)):
          assert sub[i] is multi[i]
          assert sub.get_block_name(i) == multi.get_block_name(i)
      sub = multi[0:-1:2]
      assert len(sub) == 2
      for i in range(len(sub)):
          j = i * 2
          assert sub[i] is multi[j]
          assert sub.get_block_name(i) == multi.get_block_name(j)
  
      sub = [airplane, tetbeam]
      multi[0:2] = sub
      assert multi[0] is airplane
      assert multi[1] is tetbeam
  
imports: import pathlib
  import platform
  import weakref
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista import ImageData, MultiBlock, PolyData, RectilinearGrid, StructuredGrid, examples
label_desc: Use image node_id 26 for calling a global function with example usage: test_multi_slice_index(ant, sphere, uniform, airplane, tetbeam) without return types