code: def test_read_json(tmpdir, pdf, hdfs, test_url):
      fname = tmpdir.mkdir("json").join("test_json_reader.json")
      # Write to local file system
      # Sorting by col_name now as pandas sorts by col name while reading json
  
      pdf.sort_index(axis=1).to_json(
          fname, orient="records", lines=True
      )
      # Read from local file system as buffer
      with open(fname, mode="rb") as f:
          buffer = BytesIO(f.read())
      # Write to hdfs
      hdfs.upload(basedir + "/test_json_reader.json", buffer)
  
      if test_url:
          hd_fpath = "hdfs://{}:{}{}/test_json_reader.json".format(
              host, port, basedir
          )
      else:
          hd_fpath = f"hdfs://{basedir}/test_json_reader.json"
  
      got = cudf.read_json(
          hd_fpath, engine="cudf", orient="records", lines=True
      )
  
      # Read pandas from byte buffer
      with hdfs.open(basedir + "/test_json_reader.json") as f:
          expect = pd.read_json(f, lines=True)
  
      assert_eq(expect, got)
  
imports: import os
  from io import BytesIO
  import fastavro
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 8 for calling a global function with example usage: test_read_json(tmpdir, pdf, hdfs, test_url) without return types