def download(url, path=None, headers=None, session=None, show_progress=True,<EOL>resume=True, auto_retry=True, max_rst_retries=<NUM_LIT:5>,<EOL>pass_through_opts=None, cainfo=None, user_agent=None, auth=None):
hm = Homura(url, path, headers, session, show_progress, resume,<EOL>auto_retry, max_rst_retries, pass_through_opts, cainfo,<EOL>user_agent, auth)<EOL>hm.start()<EOL>
Main download function