 the given path.

        If *transform* is not ``None``, the path will be transformed before
        performing the test.
        N)