code: def apply_heatmap_image_properties(fig):
      """For heatmap and grayscale images, need to add those properties which on Image exists automatically."""
      fig.update_yaxes(autorange="reversed", constrain="domain")
      fig.update_xaxes(constrain="domain")
  
imports: import io
  import typing
  from numbers import Number
  from pathlib import Path
  import cv2
  import numpy
  import PIL.Image
  import PIL.ImageDraw
  import PIL.ImageOps
  import plotly.graph_objects
  from PIL import ImageColor, ImageFont
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.html import imagetag
  from deepchecks.vision.vision_data import TaskType
  from deepchecks.vision.vision_data.utils import LabelMap
  from .detection_formatters import convert_bbox
label_desc: Use image node_id 8 for calling a global function with example usage: apply_heatmap_image_properties(fig) without return types