code: def test_create_dir_structure_from_new(
      self, mock_path, mock_disk_usage, mock_disk_space
  ):
      mock_model_path = Mock()
      mock_model_path.exists.return_value = False
      mock_code_dir = Mock()
      mock_model_path.joinpath.return_value = mock_code_dir
      mock_path.return_value = mock_model_path
  
      ret_model_path, ret_code_dir = _create_dir_structure(
          mock_model_path
      )
  
      mock_model_path.mkdir.assert_called_once_with(parents=True)
      mock_model_path.joinpath.assert_called_once_with("code")
      mock_code_dir.mkdir.assert_called_once_with(
          exist_ok=True, parents=True
      )
      mock_disk_space.assert_called_once_with(mock_model_path)
      mock_disk_usage.assert_called_once()
  
      self.assertEquals(ret_model_path, mock_model_path)
      self.assertEquals(ret_code_dir, mock_code_dir)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/serve/model_server/tgi/test_tgi_prepare.py
imports: from __future__ import absolute_import
  from unittest import TestCase
  from unittest.mock import Mock, PropertyMock, patch
  from sagemaker.serve.model_server.tgi.prepare import _create_dir_structure, _copy_jumpstart_artifacts, _extract_js_resource
  from tests.unit.sagemaker.serve.model_server.constants import MOCK_JUMPSTART_ID, MOCK_TMP_DIR, MOCK_COMPRESSED_MODEL_DATA_STR, MOCK_UNCOMPRESSED_MODEL_DATA_STR, MOCK_UNCOMPRESSED_MODEL_DATA_STR_FOR_DICT, MOCK_UNCOMPRESSED_MODEL_DATA_DICT, MOCK_INVALID_MODEL_DATA_DICT
label_desc: Use image node_id 1 for calling the TgiPrepareTests obj's underlying member method code with example usage: obj.test_create_dir_structure_from_new(mock_path, mock_disk_usage, mock_disk_space) without return types