code: def test_sanity():
      im1 = hopper()
  
      data = list(im1.getdata())
  
      im2 = Image.new(im1.mode, im1.size, 0)
      im2.putdata(data)
  
      assert_image_equal(im1, im2)
  
      # readonly
      im2 = Image.new(im1.mode, im2.size, 0)
      im2.readonly = 1
      im2.putdata(data)
  
      assert not im2.readonly
      assert_image_equal(im1, im2)
  
file_path: pillow-simd/Tests/test_image_putdata.py
imports: import sys
  from array import array
  import pytest
  from PIL import Image
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 1 for calling a global function with example usage: test_sanity() without return types