code: def test_proj_simplex(size, z):
      rng = np.random.RandomState(0)
  
      v = rng.rand(size)
      w = project_simplex(v, z=z)
      w2 = project_simplex_bisection(v, z=z, max_iter=100)
      np.testing.assert_array_almost_equal(w, w2, 3)
  
imports: import numpy
  import pytest
  from lightning.impl.penalty import project_l1_ball, project_simplex
label_desc: Use image node_id 2 for calling a global function with example usage: test_proj_simplex(size, z) without return types