code: def test_set_delay(fx_asset):
      with Image(
          filename=str(fx_asset.joinpath("nocomments.gif"))
      ) as img:
          with img.sequence[2] as frame:
              assert frame.delay == 0
              frame.delay = 10
          with img.sequence.index_context(2):
              assert library.MagickGetImageDelay(img.wand) == 10
          with raises(TypeError):
              img.sequence[2].delay = 0.0001
          with raises(ValueError):
              img.sequence[2].delay = -1
  
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 28 for calling a global function with example usage: test_set_delay(fx_asset) without return types