code: def test_index(fx_asset):
      with Image(
          filename=str(fx_asset.joinpath("nocomments.gif"))
      ) as img:
          for i, single in enumerate(img.sequence):
              assert single.index == i
          del img.sequence[0]
          for i, single in enumerate(img.sequence):
              assert single.index == i
      with Image(
          filename=str(fx_asset.joinpath("nocomments.gif"))
      ) as img:
          del img.sequence[2]
          for i, single in enumerate(img.sequence):
              assert single.index == i
  
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 23 for calling a global function with example usage: test_index(fx_asset) without return types