code: def disk_used(path):
      """Return the disk usage in a directory."""
      size = 0
      for file in os.listdir(path) + ["."]:
          stat = os.stat(os.path.join(path, file))
          if hasattr(stat, "st_blocks"):
              size += stat.st_blocks * 512
          else:
              # on some platform st_blocks is not available (e.g., Windows)
              # approximate by rounding to next multiple of 512
              size += (stat.st_size // 512 + 1) * 512
      # We need to convert to int to avoid having longs on some systems (we
      # don't want longs to avoid problems we SQLite)
      return int(size / 1024.0)
  
file_path: catboost/contrib/python/scikit-learn/py2/sklearn/externals/joblib/disk.py
imports: import errno
  import os
  import shutil
  import sys
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: disk_used(path) and returns: int