code: def _apply(self, ctx: ExtensionContext) -> Any:
          
          _, 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
          ))
docs: 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.