code: def test_json_compressed(compression):
      with tmpdir() as path:
          dd.to_json(ddf, path, compression=compression)
          actual = dd.read_json(
              os.path.join(path, "*"), compression=compression
          )
          assert_eq(df, actual, check_index=False)
  
imports: from __future__ import annotations
  import json
  import os
  import fsspec
  import pandas
  import pytest
  from packaging.version import Version
  import dask
  import dask.dataframe
  from dask.dataframe._compat import PANDAS_GE_200
  from dask.dataframe.utils import assert_eq
  from dask.utils import tmpdir, tmpfile
label_desc: Use image node_id 15 for calling a global function with example usage: test_json_compressed(compression) without return types