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