code: def test_profile_affine_set():
      """TypeError is raised on set of affine item"""
      profile = Profile()
      profile["transform"] = "foo"
      with pytest.raises(TypeError):
          profile["affine"] = "bar"
  
imports: import pickle
  import pytest
  import rasterio
  from rasterio.profiles import Profile, DefaultGTiffProfile
  from rasterio.profiles import default_gtiff_profile
label_desc: Use image node_id 17 for calling a global function with example usage: test_profile_affine_set() without return types