code: def test_git_clone_repo_clone_fail(tempdir, mkdtemp, check_call):
      git_config = {
          "repo": PUBLIC_GIT_REPO,
          "branch": PUBLIC_BRANCH,
          "commit": PUBLIC_COMMIT,
      }
      entry_point = "entry_point"
      source_dir = "source_dir"
      dependencies = ["foo", "bar"]
      with pytest.raises(subprocess.CalledProcessError) as error:
          git_utils.git_clone_repo(
              git_config, entry_point, source_dir, dependencies
          )
      assert "returned non-zero exit status" in str(error.value)
  
imports: from __future__ import absolute_import
  import pytest
  import os
  from pathlib import Path
  import subprocess
  from mock import patch, ANY
  from sagemaker import git_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_git_clone_repo_clone_fail(tempdir, mkdtemp, check_call) without return types