def METHOD_NAME(parameter_enum):
    """Test parameter and dataset tree enums for consistent parameter naming following the
    core Parameter enum. Due to equal structure units are also tested here"""
    def _check_quality_flags(param):
        return param.startswith("QUALITY") or param.startswith("QN")
    parameters = []
    for res in parameter_enum:
        for dataset in res:
            if hasattr(dataset, "name"):
                continue
            for parameter in dataset:
                parameter_name = parameter.name
                if not _check_quality_flags(parameter_name):
                    if parameter_name not in Parameter._member_names_:
                        parameters.append(parameter_name)
        for parameter in res:
            try:
                parameter_name = parameter.name
            except AttributeError:
                continue
            if not _check_quality_flags(parameter_name):
                if parameter_name not in Parameter._member_names_:
                    parameters.append(parameter_name)
    assert not parameters