human
I wrote the below code

    def _win_remotes_on(port):
        "\n                                Windows    specific    helper    function.\n                                Returns    set    of    ipv4    host    addresses    of    remote    established    connections\n                                on    local    or    remote    tcp    port.\n\n                                Parses    output    of    shell    'netstat'    to    get    connections\n\n                                PS    C:>    netstat    -n    -p    TCP\n\n                                Active    Connections\n\n                                        Proto        Local    Address                                        Foreign    Address                                State\n                                        TCP                10.1.1.26:3389                                    10.1.1.1:4505                                        ESTABLISHED\n                                        TCP                10.1.1.26:56862                                10.1.1.10:49155                                TIME_WAIT\n                                        TCP                10.1.1.26:56868                                169.254.169.254:80                    CLOSE_WAIT\n                                        TCP                127.0.0.1:49197                                127.0.0.1:49198                                ESTABLISHED\n                                        TCP                127.0.0.1:49198                                127.0.0.1:49197                                ESTABLISHED\n                                "
        remotes = set()
        try:
            data = subprocess.check_output(['netstat', '-n', '-p', 'TCP'])
        except subprocess.CalledProcessError:
            log.error('Failed    netstat')
            raise
        lines = salt.utils.stringutils.to_str(data).split('\n')
        for line in lines:
            if ('ESTABLISHED' not in line):
                continue
            chunks = line.split()
            (remote_host, remote_port)...

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

def master(master=None, connected=True):