code: def human_readable_bytes(nb_bytes, suffix='B'):
      
      for unit in ['', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi']:
          if abs(nb_bytes) < 1024.0:
              return '%3.1f %s%s' % (nb_bytes, unit, suffix)
          nb_bytes /= 1024.0
      return '%.1f %s%s' % (nb_bytes, 'Yi', suffix)
docs: Convert a byte number into a human readable format.
  
      Parameters
      ----------
      nb_bytes : number
      suffix : str, optional (default: "B")
  
      Returns
      -------
      size_str : str
  
      Examples
      --------
      >>> human_readable_bytes(123)
      '123.0 B'
  
      >>> human_readable_bytes(1025)
      '1.0 KiB'
  
      >>> human_readable_bytes(9671406556917033397649423)
      '8.0 YiB'