code: def test_should_raise_exception_on_base_path_not_in_path():
      with pytest.raises(BasePathNotInCheckedPathException):
          contains_symlink_up_to(os.path.join("foo", "path"), "bar")
  
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 1 for calling a global function with example usage: test_should_raise_exception_on_base_path_not_in_path() without return types