code: def test_status_nods(path=None, otherpath=None):
      ds = Dataset(path).create()
      assert_result_count(
          ds.status(
              path=otherpath,
              on_failure="ignore",
              result_renderer="disabled",
          ),
          1,
          status="error",
          message=(
              "path not underneath the reference dataset %s",
              ds.path,
          ),
      )
      otherds = Dataset(otherpath).create()
      assert_result_count(
          ds.status(
              path=otherpath,
              on_failure="ignore",
              result_renderer="disabled",
          ),
          1,
          path=otherds.path,
          status="error",
          message=(
              "path not underneath the reference dataset %s",
              ds.path,
          ),
      )
  
file_path: datalad/datalad/core/local/tests/test_status.py
imports: import os.path
  import datalad.utils
  from datalad.api import status
  from datalad.core.local.status import get_paths_by_ds
  from datalad.distribution.dataset import Dataset
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CommandError, IncompleteResultsError, NoDatasetFound
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, SkipTest, assert_dict_equal, assert_in, assert_in_results, assert_not_in_results, assert_raises, assert_repo_status, assert_result_count, assert_status, eq_, get_deeply_nested_structure, has_symlink_capability, with_tempfile
  from datalad.utils import chpwd, on_windows
label_desc: Use image node_id 3 for calling a global function with example usage: test_status_nods(path, otherpath) without return types