def gen_tag_member(cls, tag):
    """generate helper funs for tag member of class"""
    spec = getattr(cls, 't_' + tag)
    anonfuns = cls.gen_tag(tag, spec)
    return cls.gen_named_comp(tag, spec, anonfuns)
