code: def test_invalid_on_bad_line(all_parsers):
      parser = all_parsers
      data = "a\n1\n1,2,3\n4\n5,6,7"
      with pytest.raises(
          ValueError, match="Argument abc is invalid for on_bad_lines"
      ):
          parser.read_csv(StringIO(data), on_bad_lines="abc")
  
imports: import codecs
  import csv
  from io import StringIO
  import os
  from pathlib import Path
  import numpy
  import pytest
  from pandas.compat import PY311
  from pandas.errors import EmptyDataError, ParserError, ParserWarning
  from pandas import DataFrame
  import pandas._testing
label_desc: Use image node_id 14 for calling a global function with example usage: test_invalid_on_bad_line(all_parsers) without return types