code: def test_RGB(self):
      self.assert_unpack(
          "RGB", "RGB", 3, (1, 2, 3), (4, 5, 6), (7, 8, 9)
      )
      self.assert_unpack(
          "RGB", "RGB;L", 3, (1, 4, 7), (2, 5, 8), (3, 6, 9)
      )
      self.assert_unpack(
          "RGB", "RGB;R", 3, (128, 64, 192), (32, 160, 96)
      )
      self.assert_unpack("RGB", "RGB;16L", 6, (2, 4, 6), (8, 10, 12))
      self.assert_unpack("RGB", "RGB;16B", 6, (1, 3, 5), (7, 9, 11))
      self.assert_unpack(
          "RGB", "BGR", 3, (3, 2, 1), (6, 5, 4), (9, 8, 7)
      )
      self.assert_unpack("RGB", "RGB;15", 2, (8, 131, 0), (24, 0, 8))
      self.assert_unpack("RGB", "BGR;15", 2, (0, 131, 8), (8, 0, 24))
      self.assert_unpack("RGB", "RGB;16", 2, (8, 64, 0), (24, 129, 0))
      self.assert_unpack("RGB", "BGR;16", 2, (0, 64, 8), (0, 129, 24))
      self.assert_unpack("RGB", "RGB;4B", 2, (17, 0, 34), (51, 0, 68))
      self.assert_unpack(
          "RGB", "RGBX", 4, (1, 2, 3), (5, 6, 7), (9, 10, 11)
      )
      self.assert_unpack(
          "RGB", "RGBX;L", 4, (1, 4, 7), (2, 5, 8), (3, 6, 9)
      )
      self.assert_unpack(
          "RGB", "BGRX", 4, (3, 2, 1), (7, 6, 5), (11, 10, 9)
      )
      self.assert_unpack(
          "RGB", "XRGB", 4, (2, 3, 4), (6, 7, 8), (10, 11, 12)
      )
      self.assert_unpack(
          "RGB", "XBGR", 4, (4, 3, 2), (8, 7, 6), (12, 11, 10)
      )
      self.assert_unpack(
          "RGB",
          "YCC;P",
          b"D]\x9c\x82\x1a\x91\xfaOC\xe7J\x12",  # random data
          (127, 102, 0),
          (192, 227, 0),
          (213, 255, 170),
          (98, 255, 133),
      )
      self.assert_unpack("RGB", "R", 1, (1, 0, 0), (2, 0, 0), (3, 0, 0))
      self.assert_unpack("RGB", "G", 1, (0, 1, 0), (0, 2, 0), (0, 3, 0))
      self.assert_unpack("RGB", "B", 1, (0, 0, 1), (0, 0, 2), (0, 0, 3))
  
      self.assert_unpack(
          "RGB", "R;16B", 2, (1, 0, 0), (3, 0, 0), (5, 0, 0)
      )
      self.assert_unpack(
          "RGB", "G;16B", 2, (0, 1, 0), (0, 3, 0), (0, 5, 0)
      )
      self.assert_unpack(
          "RGB", "B;16B", 2, (0, 0, 1), (0, 0, 3), (0, 0, 5)
      )
  
      self.assert_unpack(
          "RGB", "R;16L", 2, (2, 0, 0), (4, 0, 0), (6, 0, 0)
      )
      self.assert_unpack(
          "RGB", "G;16L", 2, (0, 2, 0), (0, 4, 0), (0, 6, 0)
      )
      self.assert_unpack(
          "RGB", "B;16L", 2, (0, 0, 2), (0, 0, 4), (0, 0, 6)
      )
  
      if sys.byteorder == "little":
          self.assert_unpack(
              "RGB", "R;16N", 2, (2, 0, 0), (4, 0, 0), (6, 0, 0)
          )
          self.assert_unpack(
              "RGB", "G;16N", 2, (0, 2, 0), (0, 4, 0), (0, 6, 0)
          )
          self.assert_unpack(
              "RGB", "B;16N", 2, (0, 0, 2), (0, 0, 4), (0, 0, 6)
          )
      else:
          self.assert_unpack(
              "RGB", "R;16N", 2, (1, 0, 0), (3, 0, 0), (5, 0, 0)
          )
          self.assert_unpack(
              "RGB", "G;16N", 2, (0, 1, 0), (0, 3, 0), (0, 5, 0)
          )
          self.assert_unpack(
              "RGB", "B;16N", 2, (0, 0, 1), (0, 0, 3), (0, 0, 5)
          )
  
      self.assert_unpack(
          "RGB",
          "CMYK",
          4,
          (250, 249, 248),
          (242, 241, 240),
          (234, 233, 233),
      )
  
imports: from __future__ import annotations
  import sys
  import pytest
  from PIL import Image
label_desc: Use image node_id 8 for calling the TestLibUnpack obj's underlying member method code with example usage: obj.test_RGB() without return types