human
I wrote the below code

    def _isPrivateIP(strict_IP):
        p1 = re.compile('^10\\.|^172\\.(?:1[6789]|2\\d|31)\\.|^192\\.168\\.|^127\\.')
        return (True if re.match(p1, strict_IP) else False)
    content = content.replace('\n', ',')
    p = re.compile('(?:(?:2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(?:2[0-4]\\d|25[0-5]|[01]?\\d\\d?)')
    _ = re.findall(p, content)
    ans = (list(set(_)) if remove_duplicate else _)
    if remove_private:
        for each in ans:
            if _isPrivateIP(each):
                ans.remove(each)
    return ans

What's a good function header?

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

def getIP(content, remove_duplicate=True, remove_private=False):