code: def _unsupported_images_for_pil(
      np_dtype: Type[np.generic],
      failing_lib: Optional[LibWithImportError],
  ) -> bool:
      # PIL is used when OpenCV is not installed, but PIL doesn't support 16-bit
      # images.
      return (
          np_dtype == np.uint16
          and failing_lib == LibWithImportError.CV2
      )
  
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 4 for calling a global function with example usage: _unsupported_images_for_pil(np_dtype, failing_lib) and returns: unknown