code: def test_readjson_chunks(request, lines_json_df, chunksize, engine):
      # Basic test that read_json(chunks=True) gives the same result as
      # read_json(chunks=False)
      # GH17048: memory usage when lines=True
  
      if engine == "pyarrow":
          # GH 48893
          reason = (
              "Pyarrow only supports a file path as an input and line delimited json"
              "and doesn't support chunksize parameter."
          )
          request.applymarker(
              pytest.mark.xfail(reason=reason, raises=ValueError)
          )
  
      unchunked = read_json(StringIO(lines_json_df), lines=True)
      with read_json(
          StringIO(lines_json_df),
          lines=True,
          chunksize=chunksize,
          engine=engine,
      ) as reader:
          chunked = pd.concat(reader)
  
      tm.assert_frame_equal(chunked, unchunked)
  
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 9 for calling a global function with example usage: test_readjson_chunks(request, lines_json_df, chunksize, engine) without return types