code: def test_gen_probs_max_error():
      f = noise_generation.generate_n_rand_probabilities_that_sum_to_m
      try:
          f(n=5, m=1, max_prob=0.1)
      except ValueError as e:
          assert "max_prob must be greater" in str(e)
          with pytest.raises(ValueError) as e:
              f(n=5, m=1, max_prob=0.1)
  
imports: import numpy
  from cleanlab.benchmarking import noise_generation
  import pytest
label_desc: Use image node_id 18 for calling a global function with example usage: test_gen_probs_max_error() without return types