code: def test_json_to_json_compare_contents(gdf, pdf):
      expected_json = pdf.to_json(lines=True, orient="records")
      with pytest.warns(UserWarning):
          actual_json = gdf.to_json(lines=True, orient="records")
  
      assert expected_json == actual_json
  
imports: import copy
  import gzip
  import itertools
  import os
  from io import BytesIO, StringIO
  from pathlib import Path
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, TIMEDELTA_TYPES, assert_eq
label_desc: Use image node_id 26 for calling a global function with example usage: test_json_to_json_compare_contents(gdf, pdf) without return types