code: def test_restore_not_git(runner, mock_server, docker, monkeypatch):
      with runner.isolated_filesystem():
          monkeypatch.setattr(
              cli, "_api", InternalApi({"project": "test"})
          )
          result = runner.invoke(cli.restore, ["test/abcdef"])
          print(result.output)
          print(traceback.print_tb(result.exc_info[2]))
          assert result.exit_code == 0
          assert "Original run has no git history" in result.output
  
file_path: wandb/tests/pytest_tests/unit_tests_old/test_core/test_cli.py
imports: import os
  import platform
  import subprocess
  import traceback
  import pytest
  import wandb
  from wandb.apis.internal import InternalApi
  from wandb.cli import cli
label_desc: Use image node_id 8 for calling a global function with example usage: test_restore_not_git(runner, mock_server, docker, monkeypatch) without return types