code: def setup_archive_remote(repo, archive_path):
      # for integration in a URL, we need POSIX version of the path
      archive_path = Path(archive_path)
  
      if "DATALAD_TESTS_SSH" in os.environ:
          cfg = {
              "url": "ria+ssh://datalad-test{}"
              "".format(archive_path.as_posix())
          }
      else:
          cfg = {"url": "ria+{}".format(archive_path.as_uri())}
      initexternalremote(repo, "archive", "ora", config=cfg)
  
file_path: datalad/datalad/distributed/tests/ria_utils.py
imports: import inspect
  import os
  from functools import wraps
  from glob import glob
  from datalad.tests.utils_pytest import SkipTest, attr, create_tree
  from datalad.utils import Path
label_desc: Use image node_id 4 for calling a global function with example usage: setup_archive_remote(repo, archive_path) without return types