def METHOD_NAME(self, config_path: str, results_filter: Optional[ObjectType]) -> List[str]:
    groups: Dict[str, List[str]] = {
        "": ["dataset", "level1", "optimizer"],
        "dataset": [],
        "optimizer": [],
        "level1": ["level2"],
        "level1/level2": [],
    }
    configs: Dict[str, List[str]] = {
        "": ["config_without_group", "dataset"],
        "dataset": ["cifar10", "imagenet"],
        "optimizer": ["adam", "nesterov"],
        "level1": [],
        "level1/level2": ["nested1", "nested2"],
        "configs_with_defaults_list": ["global_package", "group_package"],
    }
    if results_filter is None:
        return sorted(set(groups[config_path] + configs[config_path]))
    elif results_filter == ObjectType.GROUP:
        return groups[config_path]
    elif results_filter == ObjectType.CONFIG:
        return configs[config_path]
    else:
        raise ValueError()