code: def test_pack():
      # Pack problems for small tables (@PIL209)
  
      im = hopper().quantize(3).convert("RGB")
  
      expected = [
          (4039, (172, 166, 181)),
          (4385, (124, 113, 134)),
          (7960, (31, 20, 33)),
      ]
  
      A = im.getcolors(maxcolors=2)
      assert A is None
  
      A = im.getcolors(maxcolors=3)
      A.sort()
      assert A == expected
  
      A = im.getcolors(maxcolors=4)
      A.sort()
      assert A == expected
  
      A = im.getcolors(maxcolors=8)
      A.sort()
      assert A == expected
  
      A = im.getcolors(maxcolors=16)
      A.sort()
      assert A == expected
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_pack() without return types