3D problem (sphere) Navier-Stokes

Many thanks for the minimal code!
But, still, I am having some issues with the interpolate function:

$ python3 fluid.py
DOLFINx version: 0.3.1.0 is installed
DOLFINx version: 0.3.1.0 is installed
[[0. 0. 0. ... 0. 0. 0.]
 [0. 0. 0. ... 0. 0. 0.]
 [0. 0. 0. ... 0. 0. 0.]]
[[1. 1. 1. ... 1. 1. 1.]
 [0. 0. 0. ... 0. 0. 0.]
 [0. 0. 0. ... 0. 0. 0.]]
Traceback (most recent call last):
  File "/python3.8/site-packages/dolfinx/fem/function.py", line 301, in _interpolate
    self._cpp_object.interpolate(u._cpp_object)
AttributeError: 'function' object has no attribute '_cpp_object'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "fluid.py", line 64, in <module>
    u_in.interpolate(inflow_profile)
  File "/python3.8/site-packages/dolfinx/fem/function.py", line 309, in interpolate
    _interpolate(u)
  File "/Python/3.8.6-GCCcore-10.2.0/lib/python3.8/functools.py", line 875, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "python3.8/site-packages/dolfinx/fem/function.py", line 303, in _interpolate
    self._cpp_object.interpolate(u)
RuntimeError: Interpolation data has the wrong shape.

I have referred to another issue, similar to this one.
Should I use: values = np.zeros(x.shape[1])