def download_scripts(destination_dir: Path=Path('ptlflow_scripts')) -> None:
    'Download the main scripts and configs to start working with PTLFlow.'
    github_url = 'https://raw.githubusercontent.com/hmorimitsu/ptlflow/main/'
    script_names = ['datasets.yml', 'infer.py', 'test.py', 'train.py', 'validate.py']
    destination_dir.mkdir(parents=True, exist_ok=True)
    for sname in script_names:
        script_url = (github_url + sname)
        data = requests.get(script_url)
        if (data.status_code == 200):
            with open((destination_dir / sname), 'wb') as f:
                f.write(data.content)
        else:
            logging.warning('Script %s was not found.', script_url)
    logging.info('Downloaded scripts to %s.', str(destination_dir))
Download the main scripts and configs to start working with PTLFlow.
def download_scripts(destination_dir: Path=Path('ptlflow_scripts')) -> None:
    
    github_url = 'https://raw.githubusercontent.com/hmorimitsu/ptlflow/main/'
    script_names = ['datasets.yml', 'infer.py', 'test.py', 'train.py', 'validate.py']
    destination_dir.mkdir(parents=True, exist_ok=True)
    for sname in script_names:
        script_url = (github_url + sname)
        data = requests.get(script_url)
        if (data.status_code == 200):
            with open((destination_dir / sname), 'wb') as f:
                f.write(data.content)
        else:
            logging.warning('Script %s was not found.', script_url)
    logging.info('Downloaded scripts to %s.', str(destination_dir))