code: def test_setitem_slice(slice_name, slice_, fx_asset):
      with Image(filename=str(fx_asset.joinpath("apple.ico"))) as imga:
          instances = list(imga.sequence)
          with Image(
              filename=str(fx_asset.joinpath("github.ico"))
          ) as imgg:
              instances[slice_] = imgg.sequence
              imga.sequence[slice_] = imgg.sequence
              assert instances == list(imga.sequence)
              expire(imga)
              assert instances == list(imga.sequence)
  
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 10 for calling a global function with example usage: test_setitem_slice(slice_name, slice_, fx_asset) without return types