code: def test_piecewise_poisson(lambdas, lengths, random_state, output):
      """Test piecewise_poisson function returns expected Poisson distributed array."""
      assert array_equal(
          piecewise_poisson(lambdas, lengths, random_state), output
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_piecewise_poisson(lambdas, lengths, random_state, output) without return types