code: def test_git_support_succeed_model_class(
      tar_and_upload_dir, git_clone_repo, sagemaker_session
  ):
      git_clone_repo.side_effect = (
          lambda gitconfig, entrypoint, sourcedir, dependency: {
              "entry_point": "entry_point",
              "source_dir": "/tmp/repo_dir/source_dir",
              "dependencies": [
                  "/tmp/repo_dir/foo",
                  "/tmp/repo_dir/bar",
              ],
          }
      )
      entry_point = "entry_point"
      source_dir = "source_dir"
      dependencies = ["foo", "bar"]
      git_config = {
          "repo": GIT_REPO,
          "branch": BRANCH,
          "commit": COMMIT,
      }
      model = Model(
          sagemaker_session=sagemaker_session,
          entry_point=entry_point,
          source_dir=source_dir,
          dependencies=dependencies,
          git_config=git_config,
          image_uri=IMAGE_URI,
      )
      model.prepare_container_def(instance_type=INSTANCE_TYPE)
      git_clone_repo.assert_called_with(
          git_config, entry_point, source_dir, dependencies
      )
      assert model.entry_point == "entry_point"
      assert model.source_dir == "/tmp/repo_dir/source_dir"
      assert model.dependencies == [
          "/tmp/repo_dir/foo",
          "/tmp/repo_dir/bar",
      ]
  
imports: from __future__ import absolute_import
  import random
  from unittest.mock import MagicMock
  import pytest
  from mock import Mock, patch
  import sagemaker
  from sagemaker.async_inference import AsyncInferenceConfig
  from sagemaker.model import FrameworkModel, Model
  from sagemaker.huggingface.model import HuggingFaceModel
  from sagemaker.jumpstart.constants import JUMPSTART_GATED_AND_PUBLIC_BUCKET_NAME_SET, JUMPSTART_RESOURCE_BASE_NAME
  from sagemaker.jumpstart.enums import JumpStartTag
  from sagemaker.mxnet.model import MXNetModel
  from sagemaker.pytorch.model import PyTorchModel
  from sagemaker.session_settings import SessionSettings
  from sagemaker.sklearn.model import SKLearnModel
  from sagemaker.tensorflow.model import TensorFlowModel
  from sagemaker.xgboost.model import XGBoostModel
  from sagemaker.enums import EndpointType
  from sagemaker.compute_resource_requirements.resource_requirements import ResourceRequirements
  from sagemaker.workflow.properties import Properties
  from tests.unit import _test_default_bucket_and_prefix_combinations, DEFAULT_S3_BUCKET_NAME, DEFAULT_S3_OBJECT_KEY_PREFIX_NAME, SAGEMAKER_CONFIG_EDGE_PACKAGING_JOB
label_desc: Use image node_id 28 for calling a global function with example usage: test_git_support_succeed_model_class(tar_and_upload_dir, git_clone_repo, sagemaker_session) without return types