code: def test_dispose2_background(tmp_path):
      out = str(tmp_path / "temp.gif")
  
      im_list = []
  
      im = Image.new("P", (100, 100))
      d = ImageDraw.Draw(im)
      d.rectangle([(50, 0), (100, 100)], fill="#f00")
      d.rectangle([(0, 0), (50, 100)], fill="#0f0")
      im_list.append(im)
  
      im = Image.new("P", (100, 100))
      d = ImageDraw.Draw(im)
      d.rectangle([(0, 0), (100, 50)], fill="#f00")
      d.rectangle([(0, 50), (100, 100)], fill="#0f0")
      im_list.append(im)
  
      im_list[0].save(
          out,
          save_all=True,
          append_images=im_list[1:],
          disposal=[0, 2],
          background=1,
      )
  
      with Image.open(out) as im:
          im.seek(1)
          assert im.getpixel((0, 0)) == (255, 0, 0)
  
imports: from io import BytesIO
  import pytest
  from PIL import GifImagePlugin, Image, ImageDraw, ImagePalette, features
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar, hopper, is_pypy, netpbm_available
label_desc: Use image node_id 35 for calling a global function with example usage: test_dispose2_background(tmp_path) without return types