code: def test_git_clone_repo_with_token_2fa(
      isfile, tempdirm, mkdtemp, check_call
  ):
      git_config = {
          "repo": PRIVATE_GIT_REPO,
          "branch": PRIVATE_BRANCH,
          "commit": PRIVATE_COMMIT,
          "2FA_enabled": True,
          "username": "username",
          "token": "my-token",
      }
      entry_point = "entry_point"
      env = os.environ.copy()
      env["GIT_TERMINAL_PROMPT"] = "0"
      ret = git_utils.git_clone_repo(
          git_config=git_config, entry_point=entry_point
      )
      check_call.assert_any_call(
          [
              "git",
              "clone",
              "https://my-token@github.com/testAccount/private-repo.git",
              REPO_DIR,
          ],
          env=env,
      )
      check_call.assert_any_call(
          args=["git", "checkout", PRIVATE_BRANCH], cwd=REPO_DIR
      )
      check_call.assert_any_call(
          args=["git", "checkout", PRIVATE_COMMIT], cwd=REPO_DIR
      )
      assert ret["entry_point"] == "/tmp/repo_dir/entry_point"
      assert ret["source_dir"] is None
      assert ret["dependencies"] is None
  
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 12 for calling a global function with example usage: test_git_clone_repo_with_token_2fa(isfile, tempdirm, mkdtemp, check_call) without return types