code: def test_should_return_false_when_base_path_is_symlink(mocker):
      base_path = "foo"
      target_path = os.path.join(base_path, "bar")
  
      def base_path_is_symlink(path):
          if path == base_path:
              return True
          return False
  
      mocker.patch.object(
          system,
          "is_symlink",
          return_value=True,
          side_effect=base_path_is_symlink,
      )
      assert not contains_symlink_up_to(target_path, base_path)
  
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 5 for calling a global function with example usage: test_should_return_false_when_base_path_is_symlink(mocker) and returns: False, True