code: def test_sibling_inherit(basedir=None):
      ds_source = Dataset(opj(basedir, "source")).create()
  
      # In superdataset, set up remote "source" that has git-annex group "grp".
      ds_super = Dataset(opj(basedir, "super")).create()
      ds_super.siblings(
          action="add",
          name="source",
          url=ds_source.path,
          annex_group="grp",
          result_renderer="disabled",
      )
  
      ds_clone = ds_super.clone(source=ds_source.path, path="clone")
      # In a subdataset, adding a "source" sibling with inherit=True pulls in
      # that configuration.
      ds_clone.siblings(
          action="add",
          name="source",
          url=ds_source.path,
          inherit=True,
          result_renderer="disabled",
      )
      res = ds_clone.siblings(
          action="query", name="source", result_renderer="disabled"
      )
      eq_(res[0]["annex-group"], "grp")
  
file_path: datalad/datalad/distribution/tests/test_siblings.py
imports: from datalad.api import Dataset, clone, create, install, siblings
  from datalad.support.exceptions import InsufficientArgumentsError
  from datalad.support.gitrepo import GitRepo
  from datalad.support.path import basename
  from datalad.support.path import join
  from datalad.support.path import normpath, relpath
  from datalad.tests.utils_pytest import DEFAULT_BRANCH, DEFAULT_REMOTE, assert_false, assert_in, assert_in_results, assert_not_in, assert_raises, assert_result_count, assert_status, chpwd, create_tree, eq_, ok_, on_appveyor, serve_path_via_http, with_sameas_remote, with_tempfile
  from datalad.utils import Path, on_windows
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_sibling_inherit(basedir) without return types