code: def get_remote_urls(rec, remote):
      for k, v in rec.items():
          if v.get("description", "") in [remote, "[%s]" % remote]:
              return v.get("urls", [])
      return []
  
imports: from collections import defaultdict
  from datalad.support.annexrepo import AnnexRepo
  from datalad import lgr
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: get_remote_urls(rec, remote) and returns: list, v