code: def _disk_usage(path: pathlib.Path):
      """Recursively computes the disk usage of a directory."""
      if path.is_file():
          return path.stat().st_size
      elif path.is_dir():
          size_bytes = 0
          for file in path.iterdir():
              size_bytes += _disk_usage(file)
          return size_bytes
      else:
          raise NotImplementedError("What filetype is {file}?")
  
imports: import itertools
  import pathlib
  import tempfile
  import numpy
  import tensorflow
  from absl.testing import absltest
  from tensorboard.backend.event_processing import directory_watcher, event_file_loader
  from tensorboard.util import tensor_util
  from flax.metrics.tensorboard import SummaryWriter, _flatten_dict
label_desc: Use image node_id 2 for calling a global function with example usage: _disk_usage(path) and returns: path, size_bytes