code: def test_readjson_chunks_from_file(request, engine):
      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)
          )
  
      with tm.ensure_clean("test.json") as path:
          df = DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
          df.to_json(path, lines=True, orient="records")
          with read_json(
              path, lines=True, chunksize=1, engine=engine
          ) as reader:
              chunked = pd.concat(reader)
          unchunked = read_json(path, lines=True, engine=engine)
          tm.assert_frame_equal(unchunked, chunked)
  
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 13 for calling a global function with example usage: test_readjson_chunks_from_file(request, engine) without return types