import re


def guess_filename(node):
    """Infer a filename for the Gist based on the node's name.

    If the node hasn't been renamed, return an empty string.

    :param node: Node the snippet comes from
    :type node: :class:`hou.Node`
    :return: Suggested filename
    :rtype: str
    """
    if not re.match(
        r"{0}\d*".format(node.type().nameComponents()[2]),
        node.name()
    ):
        return node.name()
    else:
        return ""