code: def test_errors_param_filters_errors(self, monkeypatch) -> None:
      monkeypatch.setattr(
          validate_docstrings,
          "validate_all",
          lambda prefix, ignore_deprecated=False, ignore_functions=None: {
              "Series.foo": {
                  "errors": [
                      ("ER01", "err desc"),
                      ("ER02", "err desc"),
                      ("ER03", "err desc"),
                  ],
                  "file": "series.py",
                  "file_line": 142,
              },
              "DataFrame.bar": {
                  "errors": [
                      ("ER01", "err desc"),
                      ("ER02", "err desc"),
                  ],
                  "file": "frame.py",
                  "file_line": 598,
              },
              "Series.foobar": {
                  "errors": [("ER01", "err desc")],
                  "file": "series.py",
                  "file_line": 279,
              },
          },
      )
      exit_status = validate_docstrings.main(
          func_name=None,
          prefix=None,
          errors=["ER01"],
          output_format="default",
          ignore_deprecated=False,
          ignore_functions=None,
      )
      assert exit_status == 3
  
      exit_status = validate_docstrings.main(
          func_name=None,
          prefix=None,
          errors=["ER03"],
          output_format="default",
          ignore_deprecated=False,
          ignore_functions=None,
      )
      assert exit_status == 1
  
imports: import io
  import textwrap
  import pytest
  from scripts import validate_docstrings
label_desc: Use image node_id 5 for calling the TestMainFunction obj's underlying member method code with example usage: obj.test_errors_param_filters_errors(monkeypatch) without return types