code: def test_readjson_chunksize_requires_lines(lines_json_df, engine):
      msg = "chunksize can only be passed if lines=True"
      with pytest.raises(ValueError, match=msg):
          with read_json(
              StringIO(lines_json_df),
              lines=False,
              chunksize=2,
              engine=engine,
          ) as _:
              pass
  
imports: from collections.abc import Iterator
  from io import StringIO
  from pathlib import Path
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, read_json
  import pandas._testing
  from pandas.io.json._json import JsonReader
label_desc: Use image node_id 10 for calling a global function with example usage: test_readjson_chunksize_requires_lines(lines_json_df, engine) without return types