code: def _build_thumbnail_with_bbox(ex: np.ndarray) -> PilImage:
      """Returns blank image with Bboxes drawn on it."""
      PIL_Image = (
          lazy_imports_lib.lazy_imports.PIL_Image
      )  # pylint: disable=invalid-name
      PIL_ImageDraw = (
          lazy_imports_lib.lazy_imports.PIL_ImageDraw
      )  # pylint: disable=invalid-name
  
      shape = (
          image_feature.THUMBNAIL_SIZE,
          image_feature.THUMBNAIL_SIZE,
      )
      blank_img = PIL_Image.new("RGB", shape, (255, 255, 255))
      draw = PIL_ImageDraw.Draw(blank_img)
      rs = np.random.RandomState(97531)  # freeze random state
  
      for i in range(ex.shape[0]):
          # Rescale coordinates to match size of blank_image
          ymin, xmin, ymax, xmax = (
              ex[i, :] * image_feature.THUMBNAIL_SIZE
          )
          # Generate random rgb values for Bbox ouline
          r, g, b = list(rs.randint(0, 256, size=3))
          draw.rectangle(
              ((xmin, ymin), (xmax, ymax)), outline=(r, g, b)
          )
      return blank_img
  
imports: from __future__ import annotations
  from typing import Any, Union
  import numpy
  from tensorflow_datasets.core import lazy_imports_lib
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.features import bounding_boxes_utils
  from tensorflow_datasets.core.features import feature
  from tensorflow_datasets.core.features import image_feature
  from tensorflow_datasets.core.features import tensor_feature
  from tensorflow_datasets.core.proto import feature_pb2
  from tensorflow_datasets.core.utils import type_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _build_thumbnail_with_bbox(ex) and returns: blank_img