def METHOD_NAME(self, mode, **kwargs):
    """Downloads dataset."""
    builder_config = self.BUILDER_CONFIGS[self.name]
    default_root = os.path.join(DATA_HOME, f"COTE-{self.name.upper()}")
    filename, data_hash = builder_config["splits"][mode]
    fullname = os.path.join(default_root, filename)
    if not os.path.exists(fullname) or (data_hash and not md5file(fullname) == data_hash):
        url = builder_config["url"]
        md5 = builder_config["md5"]
        get_path_from_url(url, DATA_HOME, md5)
    return fullname