code: def test_issue_287(distr_out_class):
      network_output = mx.nd.ones(shape=(10,))
      distr_output = distr_out_class()
      args_proj = distr_output.get_args_proj()
      args_proj.initialize(init=mx.init.Constant(-1e2))
      distr_args = args_proj(network_output)
      distr = distr_output.distribution(distr_args)
      x = mx.nd.array([0.5])
      ll = distr.log_prob(x)
      assert np.isfinite(ll.asnumpy())
  
imports: import mxnet
  import numpy
  import pytest
  from gluonts.mx.distribution.beta import BetaOutput
  from gluonts.mx.distribution.gamma import GammaOutput
  from gluonts.mx.distribution.neg_binomial import NegativeBinomialOutput
label_desc: Use image node_id 1 for calling a global function with example usage: test_issue_287(distr_out_class) without return types