code: def test_extend_offset(fx_asset, how_many):
      with Image(filename=str(fx_asset.joinpath("apple.ico"))) as a:
          instances = list(a.sequence)
          with Image(
              filename=str(fx_asset.joinpath("github.ico"))
          ) as b:
              added = list(b.sequence)[::-1] + [b.sequence[0]] * (
                  how_many - 2
              )
              a.sequence.extend(added, 2)
              instances[2:2] = added
              assert list(a.sequence) == instances
              expire(a)
              assert list(a.sequence) == instances
          assert len(a.sequence) == 4 + how_many
  
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 18 for calling a global function with example usage: test_extend_offset(fx_asset, how_many) without return types