code: def test_runner_strips_cell_magics(self) -> None:
      doc = Document()
      source = nbformat.v4.new_notebook()
      code = "%%timeit\n1+1"
      source.cells.append(nbformat.v4.new_code_cell(code))
  
      def load(filename):
          handler = bahn.NotebookHandler(filename=filename)
          handler.modify_document(doc)
          assert handler._runner.failed is False
  
      with_script_contents(source, load)
  
file_path: bokeh/tests/unit/bokeh/application/handlers/test_notebook__handlers.py
imports: from __future__ import annotations
  import pytest
  import nbconvert
  import nbformat
  from packaging import version
  from bokeh.document import Document
  from tests.support.util.filesystem import with_temporary_file
  import bokeh.application.handlers.notebook
label_desc: Use image node_id 2 for calling the Test_NotebookHandler obj's underlying member method code with example usage: obj.test_runner_strips_cell_magics() without return types