<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delta(a, b):
 """Computes the distances between two colors or color sets. The shape of `a` and `b` must be equal. """

    diff = a - b
    return numpy.einsum("i...,i...->...", diff, diff)