code: def test_nominal():
      s = PickleSerializer()
      expected = [
          {
              "a": np.asarray([1, 2], dtype=np.uint64),
              "b": Decimal(1.2),
              "c": _foo,
          }
      ]
      actual = s.deserialize(s.serialize(expected))
      np.testing.assert_array_equal(actual[0]["a"], expected[0]["a"])
  
imports: from decimal import Decimal
  import numpy
  from petastorm.reader_impl.pickle_serializer import PickleSerializer
label_desc: Use image node_id 2 for calling a global function with example usage: test_nominal() without return types