code: def test_pandas_deserializer_json(pandas_deserializer):
      data = {
          "col 1": {"row 1": "a", "row 2": "c"},
          "col 2": {"row 1": "b", "row 2": "d"},
      }
      stream = io.BytesIO(json.dumps(data).encode("utf-8"))
      result = pandas_deserializer.deserialize(
          stream, "application/json"
      )
      expected = pd.DataFrame(
          [["a", "b"], ["c", "d"]],
          index=["row 1", "row 2"],
          columns=["col 1", "col 2"],
      )
      assert result.equals(expected)
  
imports: from __future__ import absolute_import
  import io
  import json
  import numpy
  import pandas
  import pytest
  from sagemaker.deserializers import StringDeserializer, BytesDeserializer, CSVDeserializer, StreamDeserializer, NumpyDeserializer, JSONDeserializer, PandasDeserializer, JSONLinesDeserializer
label_desc: Use image node_id 25 for calling a global function with example usage: test_pandas_deserializer_json(pandas_deserializer) without return types