code: def test_styleguide_init_report_with_non_subclass():
      """Verify we raise a ValueError with non BaseFormatter subclasses."""
      app = mock.Mock()
      style_guide = api.StyleGuide(app)
      with pytest.raises(ValueError):
          style_guide.init_report(object)  # type: ignore
      assert app.make_formatter.called is False
      assert app.make_guide.called is False
  
file_path: flake8/tests/unit/test_legacy_api.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from flake8.api import legacy
  from flake8.formatting import base
label_desc: Use image node_id 6 for calling a global function with example usage: test_styleguide_init_report_with_non_subclass() without return types