code: def test_cell_magic_with_invalid_body() -> None:
      src = "%%time\nif True"
      with pytest.raises(NothingChanged):
          format_cell(src, fast=True, mode=JUPYTER_MODE)
  
imports: import contextlib
  import pathlib
  import re
  from contextlib import ExitStack
  from dataclasses import replace
  from typing import ContextManager
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  from click.testing import CliRunner
  from black import Mode, NothingChanged, format_cell, format_file_contents, format_file_in_place, main
  from black.handle_ipynb_magics import jupyter_dependencies_are_installed
  from tests.util import DATA_DIR, get_case_path, read_jupyter_notebook
label_desc: Use image node_id 21 for calling a global function with example usage: test_cell_magic_with_invalid_body() without return types