code: def make_pil_fail():
      """Recreates Pillow not being installed during the test."""
      real_pil = tfds.features.image_feature.PIL_Image
      tfds.features.image_feature.PIL_Image = None
      try:
          yield LibWithImportError.PIL
      finally:
          tfds.features.image_feature.PIL_Image = real_pil
  
imports: import contextlib
  import enum
  import os
  import pathlib
  from typing import Optional, Type
  from absl.testing import parameterized
  import numpy
  import PIL
  import pytest
  import tensorflow
  import tensorflow_datasets
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import features
label_desc: Use image node_id 2 for calling a global function with example usage: make_pil_fail() without return types