code: def initexternalremote(
      repo, name, type, encryption=None, config=None
  ):
      config = dict(
          config if config else {},
          type="external",
          externaltype=type,
      )
      return initremote(
          repo, name, encryption=encryption, config=config
      )
  
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 3 for calling a global function with example usage: initexternalremote(repo, name, type, encryption, config) and returns: initremote