code: def test_get_relevant_upstream_commit_no_search(
      mock_repo, mock_search
  ):
      # when
      upstream_commit = get_relevant_upstream_commit(mock_repo)
  
      # then
      assert (
          upstream_commit
          == mock_repo.active_branch.tracking_branch.return_value.commit
      )
      mock_search.assert_not_called()
  
imports: import datetime
  import git
  from git import Repo
  from mock import MagicMock, patch
  from neptune.internal.utils.git import GitInfo, get_diff, get_relevant_upstream_commit, get_repo_from_git_ref, get_uncommitted_changes, get_upstream_index_sha, search_for_most_recent_ancestor, to_git_info, track_uncommitted_changes
  from neptune.types import GitRef
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_relevant_upstream_commit_no_search(mock_repo, mock_search) without return types