human
I wrote the below code

    def clean(tagstr):
        if isinstance(tagstr, str):
            return tagstr.replace('|', '_')[:200]
        return unicode(tagstr).replace('|', '_')[:200].encode('utf-8')
    return [clean(t) for t in tags]

What's a good function header?

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

def _clean_tags(tags):