code: def check_available_space(
      output_folder: str, min_disk_space: Optional[float]
  ):
      if not min_disk_space:
          return True
  
      stats = os.statvfs(output_folder)
      available_size = stats.f_frsize * stats.f_bavail
  
      if available_size < min_disk_space:
          error = (
              f"Not enough disk space. Available space is {get_size_str(available_size)}."
              f" Required space is {get_size_str(min_disk_space)}."
          )
          raise LLMResourceException(error)
  
file_path: h2o-llmstudio/llm_studio/src/utils/export_utils.py
imports: import json
  import logging
  import os
  import zipfile
  from typing import Optional
  from llm_studio.src.utils.exceptions import LLMResourceException
  from llm_studio.src.utils.utils import add_file_to_zip
label_desc: Use image node_id 5 for calling a global function with example usage: check_available_space(output_folder, min_disk_space) and returns: True