code: def check_noannex(ds):
      assert_true(isinstance(ds.repo, GitRepo))
      assert_true((ds.pathobj / ".noannex").exists())
      assert_false((ds.pathobj / ".git" / "annex").exists())
  
file_path: datalad/datalad/resources/procedures/tests/test_noannex.py
imports: import pytest
  from datalad.distribution.dataset import Dataset
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CommandError
  from datalad.support.gitrepo import GitRepo
  from datalad.tests.utils_pytest import assert_false, assert_raises, assert_true, with_tempfile, with_tree
label_desc: Use image node_id 1 for calling a global function with example usage: check_noannex(ds) without return types