code: def test_serde_fq():
      add_ = serde.decode(serde.encode(add))
      assert add_(1, 2) == 3
  
      def foo():
          pass
  
      with pytest.raises(Exception):
          serde.encode(foo)
  
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 5 for calling a global function with example usage: test_serde_fq() without return types