Sorry for the issue.
I don’t know exactly what’s wrong but to help debug the issue it would be nice to find out what object is that and find the version of the package that it’s defined. I’d guess there was a package update on the cloud envs (colab and sagemaker) and not in your local env. That would explain why it works locally and not on the cloud