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
  
imports: from unittest import mock
  import pytest
  from mlflow.entities import SourceType
  from mlflow.tracking.context.default_context import DefaultRunContext
  from mlflow.utils.mlflow_tags import MLFLOW_SOURCE_NAME, MLFLOW_SOURCE_TYPE, MLFLOW_USER
label_desc: Use image node_id 1 for calling a global function with example usage: patch_script_name() without return types