code: def test_sibling_enable_sameas(repo=None, clone_path=None):
      ds = Dataset(repo.path)
      create_tree(ds.path, {"f0": "0"})
      ds.save(path="f0")
      ds.push(["f0"], to="r_dir")
      ds.repo.drop(["f0"])
  
      ds_cloned = clone(ds.path, clone_path)
  
      assert_false(ds_cloned.repo.file_has_content("f0"))
      # does not work without a name
      res = ds_cloned.siblings(
          action="enable",
          result_renderer="disabled",
          on_failure="ignore",
      )
      assert_in_results(
          res,
          status="error",
          message="require `name` of sibling to enable",
      )
      # does not work with the wrong name
      res = ds_cloned.siblings(
          action="enable",
          name="wrong",
          result_renderer="disabled",
          on_failure="ignore",
      )
      assert_in_results(
          res,
          status="impossible",
          message=("cannot enable sibling '%s', not known", "wrong"),
      )
      # works with the right name
      res = ds_cloned.siblings(action="enable", name="r_rsync")
      assert_status("ok", res)
      ds_cloned.get(path=["f0"])
      ok_(ds_cloned.repo.file_has_content("f0"))
  
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 5 for calling a global function with example usage: test_sibling_enable_sameas(repo, clone_path) without return types