code: def patch_script_name():
      patch_sys_argv = mock.patch("sys.argv", [MOCK_SCRIPT_NAME])
      patch_os_path_isfile = mock.patch(
          "os.path.isfile", return_value=False
      )
      with patch_sys_argv, patch_os_path_isfile:
          yield
  
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 1 for calling a global function with example usage: patch_script_name() without return types