code: def test_style_guide_manager_pre_file_ignores(
      ignores, violation, filename, handle_error_return
  ):
      """Verify how the StyleGuideManager creates a default style guide."""
      formatter = mock.create_autospec(
          base.BaseFormatter, instance=True
      )
      options = create_options(
          ignore=ignores,
          select=["E", "F", "W"],
          per_file_ignores=PER_FILE_IGNORES_UNPARSED,
      )
      guide = style_guide.StyleGuideManager(
          options, formatter=formatter
      )
      assert (
          guide.handle_error(violation, filename, 1, 1, "Fake text")
          == handle_error_return
      )
  
file_path: flake8/tests/unit/test_style_guide.py
imports: from __future__ import annotations
  import argparse
  from unittest import mock
  import pytest
  from flake8 import statistics
  from flake8 import style_guide
  from flake8 import utils
  from flake8.formatting import base
label_desc: Use image node_id 6 for calling a global function with example usage: test_style_guide_manager_pre_file_ignores(ignores, violation, filename, handle_error_return) without return types