code: def test_array_F():
      # shouldn't segfault
      # see https://github.com/python-pillow/Pillow/issues/1008
  
      im = Image.new("F", (150, 100))
      arr = array("f", [0.0]) * 15000
      im.putdata(arr)
  
      assert len(im.getdata()) == len(arr)
  
file_path: pillow/Tests/test_image_putdata.py
imports: from __future__ import annotations
  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 9 for calling a global function with example usage: test_array_F() without return types