code: def _readable_memory_size(weight_memory_size):
      """Convert the weight memory size (Bytes) to a readable string."""
      units = ["Byte", "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: agents/tf_agents/networks/layer_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import re
  import numpy
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: _readable_memory_size(weight_memory_size) and returns: str, str