code: def test_distribution_output_serde(distr_output: DistributionOutput):
      distr_output_copy = decode(encode(distr_output))
  
      assert isinstance(distr_output_copy, type(distr_output))
      assert dump_json(distr_output_copy) == dump_json(distr_output)
  
imports: import pytest
  from gluonts.core.serde import encode, decode, dump_json
  from gluonts.mx.model.tpp.distribution import LoglogisticOutput, WeibullOutput
  from gluonts.mx.distribution import BetaOutput, CategoricalOutput, DeterministicOutput, DistributionOutput, DirichletMultinomialOutput, DirichletOutput, EmpiricalDistributionOutput, GammaOutput, GaussianOutput, GenParetoOutput, LaplaceOutput, LogitNormalOutput, LowrankMultivariateGaussianOutput, MultivariateGaussianOutput, NegativeBinomialOutput, OneInflatedBetaOutput, PiecewiseLinearOutput, PoissonOutput, StudentTOutput, UniformOutput, ZeroAndOneInflatedBetaOutput, ZeroInflatedBetaOutput, ZeroInflatedNegativeBinomialOutput, ZeroInflatedPoissonOutput
label_desc: Use image node_id 1 for calling a global function with example usage: test_distribution_output_serde(distr_output) without return types