code: def make_error(**kwargs):
      """Create errors with a bunch of default values."""
      kwargs.setdefault("code", DEFAULT_ERROR_CODE)
      kwargs.setdefault("filename", DEFAULT_FILENAME)
      kwargs.setdefault("line_number", 1)
      kwargs.setdefault("column_number", 1)
      kwargs.setdefault("text", DEFAULT_TEXT)
      return Violation(**kwargs, physical_line=None)
  
file_path: flake8/tests/unit/test_statistics.py
imports: from __future__ import annotations
  import pytest
  from flake8 import statistics
  from flake8.violation import Violation
label_desc: Use image node_id 1 for calling a global function with example usage: make_error() and returns: Violation