testing._collect_subtree_names_layered
function in the testing package.
Reference version
Signature
function testing._collect_subtree_names_layered(
registry: testing.TestRegistry,
profile_include: string[],
profile_exclude: string[],
cli_include: string[],
cli_exclude: string[]
) -> string[] throws testing.InvalidTestName
Source:<builtin>/testing/registry.bamlbytes 33489–34850