code: def _bokeh_format_image(image):
      """Formats an RGB image (range [0.0, 1.0], shape [H, W, 3]) for bokeh."""
      # Add alpha layer:
      image = np.concatenate(
          (image, np.ones_like(image[..., :1])), axis=-1
      )
      image = image * 255
      if bokeh.__version__ < "3.0.3":
          image = np.flipud(image)
      return (
          image.astype(np.uint8)
          .view(np.uint32)
          .reshape(image.shape[:2])
      )
  
file_path: scenic/scenic/projects/owl_vit/notebooks/plotting.py
imports: import bokeh
  from bokeh import events
  from bokeh import layouts
  from bokeh import models
  from bokeh import plotting
  from bokeh.models import widgets
  import numpy
  from scenic.model_lib.base_models import box_utils
  from scenic.projects.owl_vit.notebooks import interactive
label_desc: Use image node_id 5 for calling a global function with example usage: _bokeh_format_image(image) and returns: image