def _download_remote(remote_ref_file_name, do_cache=False):
    """
    Resolves a remote reference file by downloading its content.
    """
    remote_content = ""
    real_file_name = _deref_remote(remote_ref_file_name)
    if do_cache: # re-use local copies of remotes
        if not os.path.exists(real_file_name): # download remote if we don't have it locally yet
            print real_file_name %"Downloading %s since I do not have it locally"
            _download_by_URL(remote_ref_file_name, real_file_name)
        else: # don't download if there is already a local copy (use cached version)
            logging.debug("Using cached version")
    else: # always download remotes
        _download_by_URL(remote_ref_file_name, real_file_name)
    return real_file_name
dataset/ETHPy150Open kubernauts/kploy/kploycommon.py/_download_remote/swapped operands of `%`