fun <E> path(path: String, assertionCreator: Expect<E>.() -> Unit): PathWithCreator<E>
Helper function to create a PathWithCreator based on the given path and assertionCreator.