code: def json_files(request, tmp_path_factory, pdf):
      index, compression, orient = request.param
      if index is False and orient not in ("split", "table"):
          pytest.skip(
              "'index=False' is only valid when 'orient' is 'split' or "
              "'table'"
          )
      if index is False and orient == "table":
          pytest.skip(
              "'index=False' isn't valid when 'orient' is 'table'"
          )
      fname_df = tmp_path_factory.mktemp("json") / "test_df.json"
      fname_series = (
          tmp_path_factory.mktemp("json") / "test_series.json"
      )
      pdf.to_json(
          fname_df, index=index, compression=compression, orient=orient
      )
      pdf["col_int32"].to_json(
          fname_series,
          index=index,
          compression=compression,
          orient=orient,
      )
      return (fname_df, fname_series, orient, compression)
  
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 5 for calling a global function with example usage: json_files(request, tmp_path_factory, pdf) and returns: fname_df,  fname_series,  orient,  compression