code: def initremote(repo, name, encryption=None, config=None):
      cfg = dict(config) if config else {}
      cfg["encryption"] = encryption if encryption else "none"
      args = ["{}={}".format(k, v) for k, v in cfg.items()]
      repo.init_remote(name, args)
  
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 2 for calling a global function with example usage: initremote(repo, name, encryption, config) without return types