``if isinstance(dtype, dict)``, similar for the rest of the elif