def METHOD_NAME(self, context: OutputContext) -> str:
    """Automatically construct filepath."""
    if context.has_asset_key:
        keys = context.get_asset_identifier()
    else:
        keys = context.get_run_scoped_output_identifier()
    return str(Path(self.base_dir, *keys).with_suffix(".ipynb"))