def download_files(self, dataset_files, destination='<STR_LIT:.>'):
if not isinstance(dataset_files, list):<EOL><INDENT>dataset_files = [dataset_files]<EOL><DEDENT>for f in dataset_files:<EOL><INDENT>filename = f.path.lstrip('<STR_LIT:/>')<EOL>local_path = os.path.join(destination, filename)<EOL>if not os.path.isdir(os.path.dirname(local_path)):<EOL><INDENT>os.makedirs(os.path.dirname(local_path))<EOL><DEDENT>r = requests.get(f.url, stream=True)<EOL>with open(local_path, '<STR_LIT:wb>') as output_file:<EOL><INDENT>shutil.copyfileobj(r.raw, output_file)<EOL><DEDENT><DEDENT>
Downloads file(s) to a local destination.

:param dataset_files:
:type dataset_files: list of :class: `DatasetFile`
:param destination: The path to the desired local download destination
:type destination: str
:param chunk: Whether or not to chunk the file. Default True
:type chunk: bool