code: def _create_dir_structure(model_path: str) -> tuple:
      """Create the expected model directory structure for the TGI server"""
      model_path = Path(model_path)
      if not model_path.exists():
          model_path.mkdir(parents=True)
      elif not model_path.is_dir():
          raise ValueError("model_dir is not a valid directory")
  
      code_dir = model_path.joinpath("code")
      code_dir.mkdir(exist_ok=True, parents=True)
  
      _check_disk_space(model_path)
      _check_docker_disk_usage()
  
      return (model_path, code_dir)
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/model_server/tgi/prepare.py
imports: from __future__ import absolute_import
  import tarfile
  import logging
  from typing import List
  from pathlib import Path
  from sagemaker.serve.utils.local_hardware import _check_disk_space, _check_docker_disk_usage
  from sagemaker.utils import _tmpdir
  from sagemaker.s3 import S3Downloader
label_desc: Use image node_id 3 for calling a global function with example usage: _create_dir_structure(model_path) and returns: model_path,  code_dir