def METHOD_NAME(cls, instance):
    """Get invalid nodes in instance.
    Args:
        instance (:class:`pyblish.api.Instance`): published instance.
    """
    transforms = cmds.ls(instance, type='transform', long=True)
    invalid = []
    for transform in transforms:
        shapes = cmds.listRelatives(transform,
                                    shapes=True,
                                    fullPath=True,
                                    noIntermediate=True)
        shape_type = cmds.nodeType(shapes[0]) if shapes else "group"
        if not cls.is_valid_name(transform, shape_type,
                                 cls.SUFFIX_NAMING_TABLE,
                                 cls.ALLOW_IF_NOT_IN_SUFFIX_TABLE):
            invalid.append(transform)
    return invalid