code: def test_probs_duplicate_values(values, probs, probs_adjusted):
      probs_adjusted_computed = DiscreteDistribution.adjust_probs(
          values, probs
      )
      assert all(
          probs_adjusted.view(-1) == probs_adjusted_computed.view(-1)
      )
  
imports: import pytest
  import torch
  from gluonts.torch.distributions import DiscreteDistribution
label_desc: Use image node_id 2 for calling a global function with example usage: test_probs_duplicate_values(values, probs, probs_adjusted) without return types