code: def sizeof_fmt(val: Union[int, float]) -> str:
      val = float(val)
      for unit in ("", "K", "M", "G", "T", "P", "E", "Z"):
          if abs(val) < 1024.0:
              return "%3.1f%sB" % (val, unit)
          val /= 1024.0
      return "%.1f%sB" % (val, "Y")
  
imports: import datetime
  import functools
  import io
  import json
  import os
  import pathlib
  import platform
  import random
  import re
  import sys
  import time
  import warnings
  from typing import IO, Any, Callable, Dict, Iterator, Optional, Sequence, Tuple, TypeVar, Union, cast, no_type_check, overload
  import urllib3
  from determined.common import yaml
label_desc: Use image node_id 5 for calling a global function with example usage: sizeof_fmt(val) and returns: unknown, unknown