code: def test_json_reader(json_files):
      path_df, path_series, orient, compression = json_files
      expect_df = pd.read_json(
          path_df, orient=orient, compression=compression
      )
      got_df = cudf.read_json(
          path_df, orient=orient, compression=compression
      )
      if len(expect_df) == 0:
          expect_df = expect_df.reset_index(drop=True)
          expect_df.columns = expect_df.columns.astype("object")
      if len(got_df) == 0:
          got_df = got_df.reset_index(drop=True)
  
      assert_eq(expect_df, got_df, check_categorical=False)
  
      # Only these orients are allowed for Series, but isn't enforced by Pandas
      if orient in ("split", "records", "index"):
          expect_series = pd.read_json(
              path_series,
              orient=orient,
              compression=compression,
              typ="series",
          )
          got_series = cudf.read_json(
              path_series,
              orient=orient,
              compression=compression,
              typ="series",
          )
          if len(expect_series) == 0:
              expect_series = expect_series.reset_index(drop=True)
          if len(got_df) == 0:
              got_series = got_series.reset_index(drop=True)
  
          assert_eq(expect_series, got_series)
  
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 6 for calling a global function with example usage: test_json_reader(json_files) without return types