code: def test_should_return_false_on_no_more_dirs_below_path(mocker):
      mocker.patch.object(system, "is_symlink", return_value=False)
      dirname_patch = mocker.patch.object(
          os.path, "dirname", side_effect=lambda arg: arg
      )
      assert not contains_symlink_up_to(
          os.path.join("foo", "path"), "foo"
      )
      dirname_patch.assert_called_once()
  
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 4 for calling a global function with example usage: test_should_return_false_on_no_more_dirs_below_path(mocker) without return types