code: def plot_samples(s: Tensor, bins: int = 100) -> None:
      from matplotlib import pyplot as plt
  
      s = s.asnumpy()
      plt.hist(s, bins=bins)
      plt.show()
  
file_path: gluonts/test/mx/distribution/test_mixture.py
imports: import mxnet
  import numpy
  import pytest
  from gluonts.core.serde import dump_json, load_json
  from gluonts.gluonts_tqdm import tqdm
  from gluonts.mx import Tensor
  from gluonts.mx.distribution import Gamma, GammaOutput, Gaussian, GaussianOutput, GenPareto, GenParetoOutput, LaplaceOutput, MixtureDistribution, MixtureDistributionOutput, MultivariateGaussianOutput, StudentT, StudentTOutput
  from gluonts.mx.distribution.distribution import Distribution
  from gluonts.mx.distribution.distribution_output import DistributionOutput
  from gluonts.testutil import empirical_cdf
label_desc: Use image node_id 1 for calling a global function with example usage: plot_samples(s, bins) without return types