code: def test_should_call_recursive_on_no_condition_matched(mocker):
      mocker.patch.object(system, "is_symlink", return_value=False)
  
      contains_symlink_spy = mocker.spy(
          dvc.utils.fs, "contains_symlink_up_to"
      )
  
      # call from full path to match contains_symlink_spy patch path
      assert not dvc.utils.fs.contains_symlink_up_to(
          os.path.join("foo", "path"), "foo"
      )
      assert contains_symlink_spy.mock.call_count == 2
  
imports: import os
  import pytest
  import dvc
  from dvc.fs import system
  from dvc.utils import relpath
  from dvc.utils.fs import BasePathNotInCheckedPathException, contains_symlink_up_to, path_isin, remove
label_desc: Use image node_id 7 for calling a global function with example usage: test_should_call_recursive_on_no_condition_matched(mocker) without return types