Loads a yaml fragment from an external file.

        Args:
            ctx: The processing context.

        Returns:
            The external resource as a python dictionary. The fragment is already send through
            the processor as well.

def _apply(self, ctx: ExtensionContext) -> Any:
        """
        Loads a yaml fragment from an external file.

        Args:
            ctx: The processing context.

        Returns:
            The external resource as a python dictionary. The fragment is already send through
            the processor as well.
        """
        _, external_path = ctx.node
        return ctx.mentor.load_yaml(self.locator(
            external_path,
            cast(str, ctx.document) if Validator.is_file(document=ctx.document) else None
        ))