code: def test_getitem(fx_asset):
      with Image(filename=str(fx_asset.joinpath("apple.ico"))) as img:
          size = img.size
          assert size == img.sequence[img.sequence.current_index].size
          assert img.sequence[0].size == (32, 32)
          assert img.sequence[1].size == (16, 16)
          assert img.sequence[2].size == (32, 32)
          assert img.sequence[3].size == (16, 16)
          with raises(IndexError):
              img.sequence[4]
          assert img.sequence[-1].size == (16, 16)
          assert img.sequence[-2].size == (32, 32)
          assert img.sequence[-3].size == (16, 16)
          assert img.sequence[-4].size == (32, 32)
          with raises(IndexError):
              img.sequence[-5]
          assert img.size == size
  
imports: from __future__ import print_function
  from pytest import mark, raises
  from wand.api import library
  from wand.image import Image
label_desc: Use image node_id 5 for calling a global function with example usage: test_getitem(fx_asset) without return types