Suppose I have [NumPy](https://numpy.org/) N-D array `a` and a function `f(a)` which returns any complex view `v` of `a`, also array `b` which has same shape as `v`.

What is the easiest way to assign `b` to `v`? Both of them can be multi-dimensional.

Simplest trial like in next code to assign to function's return value fails with error: `SyntaxError: can't assign to function call`:

```
import numpy as np
a, b = np.arange(10), np.arange(2)
a[2:4] = b # Working
f = lambda a: a[2:4] # Returns any view of a
f(a) = b # Not working, syntax error

```

By the task it is not allowed to pass array `b` argument to function `f`, function itself should be un-modified.