def METHOD_NAME(self) -> nbformat.NotebookNode:
    self._notebook: nbformat.NotebookNode = nbformat.v4.new_notebook()
    self._add_header()
    self._add_docs_cell()
    if self.datasource_type == DatasourceTypes.SQL:
        self._add_sql_credentials_cell()
    lint = black is not None
    if not lint:
        logger.warning(
            "Please install the optional dependency 'black' to enable linting. Returning input with no changes."
        )
    self._add_template_cell(lint)
    self._add_test_yaml_cells(lint)
    self._add_save_datasource_cell(lint)
    return self._notebook