code: def test_not_flattened():
      im = Image.new("L", (1, 1))
      with pytest.raises(TypeError):
          im.putdata([[0]])
      with pytest.raises(TypeError):
          im.putdata([[0]], 2)
  
      with pytest.raises(TypeError):
          im = Image.new("I", (1, 1))
          im.putdata([[0]])
      with pytest.raises(TypeError):
          im = Image.new("F", (1, 1))
          im.putdata([[0]])
  
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 10 for calling a global function with example usage: test_not_flattened() without return types