check rank of data structures only if tensors
for arrays, rank is not applicable, so it should not be checked
La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous invitons à y créer vos nouveaux projets.
for arrays, rank is not applicable, so it should not be checked