code: def test_skipfooter_bad_row(python_parser_only, data, skipfooter):
      # see gh-13879 and gh-15910
      parser = python_parser_only
      if skipfooter:
          msg = "parsing errors in the skipped footer rows"
          with pytest.raises(ParserError, match=msg):
              parser.read_csv(StringIO(data), skipfooter=skipfooter)
      else:
          msg = "unexpected end of data|expected after"
          with pytest.raises(ParserError, match=msg):
              parser.read_csv(StringIO(data), skipfooter=skipfooter)
  
imports: from __future__ import annotations
  import csv
  from io import BytesIO, StringIO, TextIOWrapper
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  from pandas.errors import ParserError, ParserWarning
  from pandas import DataFrame, Index, MultiIndex
  import pandas._testing
label_desc: Use image node_id 16 for calling a global function with example usage: test_skipfooter_bad_row(python_parser_only, data, skipfooter) without return types