code: def format_value(self, val):
      if isinstance(val, (int, float)) and not isinstance(val, bool):
          return f"{val:.5g}"
      val_str = str(val)
      if len(val_str) > self.col_width:
          val_str = f"{val_str[:self.col_width - 3]}..."
      return val_str
  
imports: import collections
  import hashlib
  import os
  import random
  import threading
  import warnings
  from datetime import datetime
  import numpy
  from keras_tuner import backend
  from keras_tuner import utils
  from keras_tuner.api_export import keras_tuner_export
  from keras_tuner.engine import hyperparameters
  from keras_tuner.engine import objective
  from keras_tuner.engine import stateful
  from keras_tuner.engine import trial
label_desc: Use image node_id 7 for calling the Display obj's underlying member method code with example usage: obj.format_value(val) and returns: val_str, val