code: def test_rps(values, probs, obs, rps):
      discrete_distr = DiscreteDistribution(values=values, probs=probs)
      rps_computed = discrete_distr.rps(obs)
      assert all(rps == rps_computed)
  
imports: import pytest
  import torch
  from gluonts.torch.distributions import DiscreteDistribution
label_desc: Use image node_id 1 for calling a global function with example usage: test_rps(values, probs, obs, rps) without return types