code: def test_balls_params():
      f = noise_generation.randomly_distribute_N_balls_into_K_bins
      N = 10
      K = 10
      for mx in [None, 1, 2, 3]:
          for mn in [None, 1, 2, 3]:
              r = f(
                  N=N,
                  K=K,
                  max_balls_per_bin=mx,
                  min_balls_per_bin=mn,
              )
              assert sum(r) == K
              assert min(r) <= (K if mn is None else mn)
              assert len(r) == K
  
imports: import numpy
  from cleanlab.benchmarking import noise_generation
  import pytest
label_desc: Use image node_id 22 for calling a global function with example usage: test_balls_params() without return types