code: def test_read_json_nested(tmp_path):
      # Check that `engine="cudf"` can
      # be used to support nested data
      df = pd.DataFrame(
          {
              "a": [{"y": 2}, {"y": 4}, {"y": 6}, {"y": 8}],
              "b": [[1, 2, 3], [4, 5], [6], [7]],
              "c": [1, 3, 5, 7],
          }
      )
      kwargs = dict(orient="records", lines=True)
      with tmp_path / "data.json" as f:
          df.to_json(f, **kwargs)
          # Ensure engine='cudf' is tested.
          actual = dask_cudf.read_json(f, engine="cudf", **kwargs)
          actual_pd = pd.read_json(f, **kwargs)
          dd.assert_eq(actual, actual_pd)
          # Ensure not passing engine='cudf'(default i.e., auto) is tested.
          actual = dask_cudf.read_json(f, **kwargs)
          dd.assert_eq(actual, actual_pd)
          # Ensure not passing kwargs also reads the file.
          actual = dask_cudf.read_json(f)
          dd.assert_eq(actual, actual_pd)
  
file_path: cudf/python/dask_cudf/dask_cudf/io/tests/test_json.py
imports: import os
  import pandas
  import pytest
  import dask
  import dask.dataframe
  from dask.utils import tmpfile
  import dask_cudf
label_desc: Use image node_id 5 for calling a global function with example usage: test_read_json_nested(tmp_path) without return types