Downloading data from websites, such as previously acquired physiological signals, is an extremely relevant task,
    taking into consideration that, without data, processing cannot take place.

    With the current function a file can be easily downloaded through the "link" input.

    ----------
    Parameters
    ----------
    link : str
        String with the url that contains the file to be downloaded.

    out : str
        Name of the downloaded file (with extension). A destination path can also be included.

def download(link, out):
    """
    Downloading data from websites, such as previously acquired physiological signals, is an extremely relevant task,
    taking into consideration that, without data, processing cannot take place.

    With the current function a file can be easily downloaded through the "link" input.

    ----------
    Parameters
    ----------
    link : str
        String with the url that contains the file to be downloaded.

    out : str
        Name of the downloaded file (with extension). A destination path can also be included.

    """

    # [Source: https://stackoverflow.com/questions/7243750/download-file-from-web-in-python-3]
    r = requests.get(link)
    with open(out, 'wb') as outfile:
        outfile.write(r.content)