code: def test_extract_delta():
      raises(ValueError, lambda: _extract_delta(KD(i, j) + KD(k, l), i))
  
imports: from sympy.concrete import Sum
  from sympy.concrete.delta import deltaproduct, deltasummation, _extract_delta
  from sympy.core import Eq, S, symbols, oo
  from sympy.functions import KroneckerDelta, Piecewise, piecewise_fold
  from sympy.logic import And
  from sympy.testing.pytest import raises
label_desc: Use image node_id 27 for calling a global function with example usage: test_extract_delta() without return types