def METHOD_NAME(self, location: Optional[PathStr] = None) -> ContextManager[PathStr]:
    """Yields prepared Stub Source.
    Allows StubSource subclasses to have a preparation
    method before providing a local path to itself.
    Yields:
        Resolved PathLike object to stub source
    """
    with ExitStack() as stack:
        reducer = cast(
            Callable[[PathStr, LocateStrategy], PathStr], partial(self._do_locate, stack)
        )
        path = reduce(reducer, self.locators, location or self.location)
        yield path