Component tensor has no attribute 'geometric dimension'

Hi all

Was following the fenicsx tutorials, however, I think since the update to dolfinx v0.6.0 the NS Channel flow demo (Test problem 1: Channel flow (Poiseuille flow) — FEniCSx tutorial) is no longer working,

When trying to define the stress tensor:

def sigma(u, p):
        """Stress tensor"""
        return 2 * mu * epsilon(u) - p * Identity(u.geometric_dimension())

I get the following error:

AttributeError: 'ComponentTensor' object has no attribute 'geometric_dimension'

Just wondering how this should be defined in v0.6.0

Use for instance len(u). There was an issue on this: `ufl.Function().geometric_dimension()` is deprecated by cganuza · Pull Request #109 · jorgensd/dolfinx-tutorial · GitHub
Im holding back the release of tutorial v0.6.0 due to some minor issues: FFCx logger leaking information with setuptools>65.5.1 · Issue #553 · FEniCS/ffcx · GitHub