code: def test_putpixel_type_error1(self, mode):
      im = hopper(mode)
      for v in self.INVALID_TYPES:
          with pytest.raises(
              TypeError, match="color must be int or tuple"
          ):
              im.putpixel((0, 0), v)
  
imports: from __future__ import annotations
  import os
  import subprocess
  import sys
  import sysconfig
  import pytest
  from PIL import Image
  from .helper import assert_image_equal, hopper, is_win32
label_desc: Use image node_id 1 for calling the TestImagePutPixelError obj's underlying member method code with example usage: obj.test_putpixel_type_error1(mode) without return types