code: def _check_disk_space(model_path: str):
      """Placeholder docstring"""
      usage = shutil.disk_usage(model_path)
      percentage_used = usage[1] / usage[0]
      if percentage_used >= 0.5:
          logger.warning(
              "%s percent of disk space used. Please consider freeing up disk space "
              "or increasing the EBS volume if you are on a SageMaker Notebook.",
              percentage_used * 100,
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/utils/local_hardware.py
imports: from __future__ import absolute_import
  import subprocess
  import multiprocessing
  import logging
  import shutil
  from math import ceil, floor
  from platform import system
  from pathlib import Path
  import psutil
  from sagemaker import Session
label_desc: Use image node_id 4 for calling a global function with example usage: _check_disk_space(model_path) without return types