code: def get_size(dir_path):
      if os.path.isfile(dir_path):
          return os.stat(dir_path).st_size
      return sum(
          os.stat(f).st_size
          for f in glob.iglob(
              os.path.join(dir_path, "**/*"), recursive=True
          )
          if os.path.isfile(f)
      )
  
imports: import datetime
  import glob
  import json
  import os
  import tempfile
  import time
  from typing import Any, Optional
  import humanize
  from dateutil import parser, tz
  from structlog import get_logger
  from modelkit.assets import errors
  from modelkit.assets.drivers.abc import StorageDriver
  from modelkit.assets.drivers.local import LocalStorageDriver, LocalStorageDriverSettings
  from modelkit.assets.settings import AssetSpec
  from modelkit.utils.logging import ContextualizedLogging
label_desc: Use image node_id 1 for calling a global function with example usage: get_size(dir_path) and returns: sum, os