code: def test_swap_light_and_dark_style_transformation():
      transformation = SwapLightAndDarkStyleTransformation()
  
      # Test with 6 digit hex colors.
      before = Attrs(
          color="440000",
          bgcolor="888844",
          bold=True,
          underline=True,
          strike=True,
          italic=True,
          blink=False,
          reverse=False,
          hidden=False,
      )
      after = Attrs(
          color="ffbbbb",
          bgcolor="bbbb76",
          bold=True,
          underline=True,
          strike=True,
          italic=True,
          blink=False,
          reverse=False,
          hidden=False,
      )
  
      assert transformation.transform_attrs(before) == after
  
      # Test with ANSI colors.
      before = Attrs(
          color="ansired",
          bgcolor="ansiblack",
          bold=True,
          underline=True,
          strike=True,
          italic=True,
          blink=False,
          reverse=False,
          hidden=False,
      )
      after = Attrs(
          color="ansibrightred",
          bgcolor="ansiwhite",
          bold=True,
          underline=True,
          strike=True,
          italic=True,
          blink=False,
          reverse=False,
          hidden=False,
      )
  
      assert transformation.transform_attrs(before) == after
  
imports: from __future__ import annotations
  from prompt_toolkit.styles import Attrs, Style, SwapLightAndDarkStyleTransformation
label_desc: Use image node_id 5 for calling a global function with example usage: test_swap_light_and_dark_style_transformation() without return types