code: def test_lines_with_compression(compression):
      with tm.ensure_clean() as path:
          df = pd.read_json(
              StringIO('{"a": [1, 2, 3], "b": [4, 5, 6]}')
          )
          df.to_json(
              path,
              orient="records",
              lines=True,
              compression=compression,
          )
          roundtripped_df = pd.read_json(
              path, lines=True, compression=compression
          )
          tm.assert_frame_equal(df, roundtripped_df)
  
file_path: pandas/pandas/tests/io/json/test_compression.py
imports: from io import BytesIO, StringIO
  import pytest
  import pandas.util._test_decorators
  import pandas
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_lines_with_compression(compression) without return types