human
I wrote the below code

    global _email_from, _smtp, _smtp_connect
    def connect():
        smtp = connectfun()
        smtp.login(email, passwd)
        return smtp
    _email_from = email
    _smtp_connect = connect
    _smtp = _smtp_connect()

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def smtp_login(email, passwd, connectfun):