code: def test_invalid_calls(path=None):
      ds = Dataset(path).create()
  
      # no argument:
      assert_raises(TypeError, ds.create_sibling_ria)
  
      # same name for git- and special remote:
      assert_raises(
          ValueError,
          ds.create_sibling_ria,
          "ria+file:///some/where",
          name="some",
          storage_name="some",
      )
  
      # missing ria+ URL prefix
      assert_result_count(
          ds.create_sibling_ria(
              "file:///some/where", name="some", on_failure="ignore"
          ),
          1,
          status="error",
      )
  
file_path: datalad/datalad/distributed/tests/test_create_sibling_ria.py
imports: import logging
  import os.path
  from functools import wraps
  from unittest.mock import patch
  from datalad import cfg
  from datalad.api import Dataset, clone
  from datalad.support.network import get_local_file_url
  from datalad.tests.utils_pytest import assert_false, assert_in, assert_raises, assert_repo_status, assert_result_count, assert_status, attr, chpwd, eq_, known_failure_githubci_win, ok_exists, skip_if_on_windows, skip_ssh, skip_wo_symlink_capability, slow, swallow_logs, with_tempfile, with_tree
  from datalad.utils import Path
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_calls(path) without return types