code: def test_rawmode_getdata():
      # Arrange
      data_in = list(range(256)) * 3
      palette = ImagePalette.raw("RGB", data_in)
  
      # Act
      rawmode, data_out = palette.getdata()
  
      # Assert
      assert rawmode == "RGB"
      assert data_in == data_out
  
file_path: pillow/Tests/test_imagepalette.py
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImagePalette
  from .helper import assert_image_equal, assert_image_equal_tofile
label_desc: Use image node_id 12 for calling a global function with example usage: test_rawmode_getdata() without return types