code: def test_power_divergence_invalid():
      a = np.random.random(size=30)
      a_ = da.from_array(a, 3)
  
      with pytest.raises(ValueError):
          dask.array.stats.power_divergence(a_, lambda_="wrong")
  
file_path: dask/dask/array/tests/test_stats.py
imports: from __future__ import annotations
  import warnings
  import pytest
  from packaging.version import parse
  import numpy
  import dask.array
  import dask.array.stats
  from dask.array.utils import allclose, assert_eq
  from dask.delayed import Delayed
label_desc: Use image node_id 8 for calling a global function with example usage: test_power_divergence_invalid() without return types