code: def test_json_serialization(e) -> None:
      expected, actual = e, serde.load_json(serde.dump_json(e))
      assert check_equality(expected, actual)
  
imports: from functools import partial
  from operator import add
  from pathlib import Path
  from typing import NamedTuple
  import numpy
  import pandas
  import pytest
  from gluonts.core.component import equals, equals_list
  from gluonts.core import serde
label_desc: Use image node_id 2 for calling a global function with example usage: test_json_serialization(e) without return types