code: def _get_url_mappings(cfg):
      cfg_prefix = "datalad.clone.url-substitute."
      # figure out which keys we should be looking for
      # in the active config
      subst_keys = set(
          k for k in cfg.keys() if k.startswith(cfg_prefix)
      )
      # and in the common config specs
      from datalad.interface.common_cfg import definitions
  
      subst_keys.update(
          k for k in definitions if k.startswith(cfg_prefix)
      )
      # TODO a potential sorting of substitution series could be implemented
      # here
      return [
          # decode the rule specifications
          get_replacement_dict(
              # one or more could come out
              ensure_list(
                  cfg.get(
                      k,
                      # make sure to pull the default from the common config
                      default=cfg.obtain(k),
                      # we specifically support declaration of multiple
                      # settings to build replacement chains
                      get_all=True,
                  )
              )
          )
          for k in subst_keys
      ]
  
imports: import logging
  import re
  from os.path import expanduser
  from pathlib import Path
  from typing import Dict, List, Tuple
  from urllib.parse import unquote
  from datalad.cmd import CommandError, GitWitlessRunner, StdOutCapture
  from datalad.config import ConfigManager
  from datalad.distributed.ora_remote import LocalIO, RIARemoteError, SSHRemoteIO
  from datalad.distribution.dataset import Dataset
  from datalad.distribution.utils import _get_flexible_source_candidates
  from datalad.dochelpers import single_or_plural
  from datalad.log import log_progress
  from datalad.runner.exception import CommandError
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CapturedException, DownloadError
  from datalad.support.gitrepo import GitRepo
  from datalad.support.network import RI, SSHRI, URL, DataLadRI, download_url, get_local_file_url, is_url
  from datalad.support.strings import get_replacement_dict
  from datalad.utils import Path, PurePosixPath, ensure_bool, ensure_list, make_tempfile, rmtree
label_desc: Use image node_id 3 for calling a global function with example usage: _get_url_mappings(cfg) and returns: unknown