code: def _repr_html(ex: np.ndarray) -> str:
      """Returns the HTML str representation of an Image with BBoxes."""
      img = _build_thumbnail_with_bbox(ex)
      img_str = utils.get_base64(
          lambda buff: img.save(buff, format="PNG")
      )
      return f'<img src="data:image/png;base64,{img_str}" alt="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 1 for calling a global function with example usage: _repr_html(ex) and returns: str, img_str, str