def METHOD_NAME(node_name, shape_type,
                  SUFFIX_NAMING_TABLE, ALLOW_IF_NOT_IN_SUFFIX_TABLE):
    """Return whether node's name is correct.
    The correctness for a transform's suffix is dependent on what
    `shape_type` it holds. E.g. a transform with a mesh might need and
    `_GEO` suffix.
    When `shape_type` is None the transform doesn't have any direct
    children shapes.
    Args:
        node_name (str): Node name.
        shape_type (str): Type of node.
        SUFFIX_NAMING_TABLE (dict): Mapping dict for suffixes.
        ALLOW_IF_NOT_IN_SUFFIX_TABLE (dict): Filter dict.
    """
    if shape_type not in SUFFIX_NAMING_TABLE:
        return ALLOW_IF_NOT_IN_SUFFIX_TABLE
    else:
        suffices = SUFFIX_NAMING_TABLE[shape_type]
        for suffix in suffices:
            if node_name.endswith(suffix):
                return True
        return False