code: def test_git_run_context_in_context_false(patch_script_name):
      with mock.patch(
          "git.Repo", side_effect=git.InvalidGitRepositoryError
      ):
          assert not GitRunContext().in_context()
  
file_path: mlflow/tests/tracking/context/test_git_context.py
imports: from unittest import mock
  import git
  import pytest
  from mlflow.tracking.context.git_context import GitRunContext
  from mlflow.utils.mlflow_tags import MLFLOW_GIT_COMMIT
label_desc: Use image node_id 4 for calling a global function with example usage: test_git_run_context_in_context_false(patch_script_name) without return types