code: def test_chunksize_is_incremental():
      # See https://github.com/pandas-dev/pandas/issues/34548
      jsonl = (
          """{"a": 1, "b": 2}
          {"a": 3, "b": 4}
          {"a": 5, "b": 6}
          {"a": 7, "b": 8}\n"""
          * 1000
      )
  
      class MyReader:
          def __init__(self, contents) -> None:
              self.read_count = 0
              self.stringio = StringIO(contents)
  
          def read(self, *args):
              self.read_count += 1
              return self.stringio.read(*args)
  
          def __iter__(self) -> Iterator:
              self.read_count += 1
              return iter(self.stringio)
  
      reader = MyReader(jsonl)
      assert len(list(read_json(reader, lines=True, chunksize=100))) > 1
      assert reader.read_count > 10
  
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 22 for calling a global function with example usage: test_chunksize_is_incremental() and returns: self, iter