code: def _format_size(num: int) -> str:
      """Format size in bytes into a human-readable string.
  
      Taken from https://stackoverflow.com/a/1094933
      """
      num_f = float(num)
      for unit in ["", "K", "M", "G", "T", "P", "E", "Z"]:
          if abs(num_f) < 1000.0:
              return f"{num_f:3.1f}{unit}"
          num_f /= 1000.0
      return f"{num_f:.1f}Y"
  
imports: import os
  import shutil
  import time
  from collections import defaultdict
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Dict, FrozenSet, List, Literal, Optional, Set, Union
  from ..constants import HF_HUB_CACHE
  from .None import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _format_size(num) and returns: num_f, str, num_f, unit