code: def test_read_pandas_json():
      p = Path("dataframe.json")
  
      expected_error, expected_message = (
          (FileNotFoundError, "File dataframe.json does not exist")
          if pandas_version_info() >= (1, 5)
          else (ValueError, "Expected object or value")
      )
  
      with pytest.raises(expected_error) as e:
          read_pandas(p)
  
      assert str(e.value) == expected_message
  
file_path: ydata-profiling/tests/unit/test_utils.py
imports: from pathlib import Path
  import pandas
  import pytest
  from ydata_profiling.utils.compat import pandas_version_info
  from ydata_profiling.utils.dataframe import expand_mixed, read_pandas, uncompressed_extension, warn_read
label_desc: Use image node_id 3 for calling a global function with example usage: test_read_pandas_json() without return types