code: def test_red_quantum():
      q = 2**QUANTUM_DEPTH - 1
      assert Color("black").red_quantum == 0
      assert Color("red").red_quantum == q
      assert Color("white").red_quantum == q
      assert (
          (0.49 * q)
          < Color("rgba(128, 0, 0, 1)").red_quantum
          < (0.51 * q)
      )
      c = Color("none")
      c.red_quantum = q
      assert c.red_quantum == q
  
imports: import ctypes
  import time
  import warnings
  from pytest import mark, raises
  from wand.color import Color
  from wand.compat import xrange
  from wand.version import QUANTUM_DEPTH, MAGICK_VERSION_INFO
label_desc: Use image node_id 15 for calling a global function with example usage: test_red_quantum() without return types