code: def test_serde_partial():
      add_1 = partial(add, 1)
  
      add_1_ = serde.decode(serde.encode(add_1))
  
      assert add_1_(2) == 3
  
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 6 for calling a global function with example usage: test_serde_partial() without return types