code: def test_putpixel_invalid_number_of_bands(
      self, mode, band_numbers, match
  ):
      im = hopper(mode)
      for band_number in band_numbers:
          with pytest.raises(TypeError, match=match):
              im.putpixel((0, 0), (0,) * band_number)
  
imports: import ctypes
  import os
  import subprocess
  import sys
  import sysconfig
  import pytest
  from setuptools.command.build_ext import new_compiler
  from PIL import Image
  from .helper import assert_image_equal, hopper, is_win32, on_ci
label_desc: Use image node_id 2 for calling the TestImagePutPixelError obj's underlying member method code with example usage: obj.test_putpixel_invalid_number_of_bands(mode, band_numbers, match) without return types