code: def _formatter(val: Union[int, np.float32]):
      """
      For printing floats only upto 3rd precision. Ints are unchanged.
      """
      if isinstance(val, np.float32):
          return f"{val:.3f}"
      else:
          return val
  
file_path: imagededup/imagededup/utils/plotter.py
imports: import matplotlib.gridspec
  import matplotlib.pyplot
  from matplotlib import figure
  from pathlib import Path, PurePath
  from typing import Dict, Union, List
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 for calling a global function with example usage: _formatter(val) and returns: val, val