def attr_visitor_name(attr_name: str) -> str:
    """
    Returns the visitor_method name for `attr_name`, e.g.::

        >>> attr_visitor_name('class')
        'attr_class'
    """
    # assert re.match(r'\w+$', node_name)
    return 'attr_' + attr_name