code: def _get_cur_remotes(path):
      
      cur_remotes = set([])
      if isinstance(path, (list, tuple)):
          for v in path:
              cur_remotes |= _get_cur_remotes(v)
      elif isinstance(path, dict):
          for v in path.values():
              cur_remotes |= _get_cur_remotes(v)
      elif path and isinstance(path, six.string_types):
          if path.startswith(tuple(INTEGRATION_MAP.keys())):
              cur_remotes.add(INTEGRATION_MAP.get(path.split(":")[0] + ":"))
      return cur_remotes
docs: Retrieve remote references defined in the CWL.