def METHOD_NAME(self, preprocessor):
    """Is an error raised when there is an attachment in the marking scheme?"""
    source = dedent(
        """
        assert True
        ### BEGIN MARK SCHEME
        ![](attachment:image.png)
        ### END MARK SCHEME
        """
    ).strip()
    cell = create_task_cell(source, 'markdown', 'some-task-id', 2)
    with pytest.raises(RuntimeError):
        preprocessor._remove_mark_scheme_region(cell)
    source = dedent(
        """
        assert True
        ### BEGIN MARK SCHEME
        ![alt text](attachment:answers.png)
        ### END MARK SCHEME
        """
    ).strip()
    cell = create_task_cell(source, 'markdown', 'some-task-id', 2)
    with pytest.raises(RuntimeError):
        preprocessor._remove_mark_scheme_region(cell)
    source = dedent(
        """
        assert True
        ### BEGIN MARK SCHEME
        Text text text text text.
        ![](attachment:image1.jpg)
        Grade grade grade.
        ![](attachment:image2.png)
        Mark mark mark mark.
        ### END MARK SCHEME
        """
    ).strip()
    cell = create_task_cell(source, 'markdown', 'some-task-id', 2)
    with pytest.raises(RuntimeError):
        preprocessor._remove_mark_scheme_region(cell)