code: def test_array_B():
      # shouldn't segfault
      # see https://github.com/python-pillow/Pillow/issues/1008
  
      arr = array("B", [0]) * 15000
      im = Image.new("L", (150, 100))
      im.putdata(arr)
  
      assert len(im.getdata()) == len(arr)
  
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 7 for calling a global function with example usage: test_array_B() without return types