code: def readable_memory_size(weight_memory_size):
      """Convert the weight memory size (Bytes) to a readable string."""
      units = ["B", "KB", "MB", "GB", "TB", "PB"]
      scale = 1024
      for unit in units:
          if weight_memory_size / scale < 1:
              return "{:.2f} {}".format(weight_memory_size, unit)
          else:
              weight_memory_size /= scale
      return "{:.2f} {}".format(weight_memory_size, units[-1])
  
file_path: keras/keras/utils/summary_utils.py
imports: import math
  import re
  import shutil
  import rich
  import rich.console
  import rich.markup
  import rich.table
  import tree
  from keras import backend
  from keras.utils import dtype_utils
  from keras.utils import io_utils
label_desc: Use image node_id 3 for calling a global function with example usage: readable_memory_size(weight_memory_size) and returns: str, str