code: def test_mode_with_L_with_float():
      im = Image.new("L", (1, 1), 0)
      im.putdata([2.0])
      assert im.getpixel((0, 0)) == 2
  
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 4 for calling a global function with example usage: test_mode_with_L_with_float() without return types