Update setAnnotations method to set_annotations to avoid the deprecation warning and future breaks:
DeprecationWarning: Call to deprecated method setAnnotations. (deprecated and replaced with :py:meth:`set_annotations` This method is UNSAFE and may overwrite existing annotations without confirming that you have retrieved and updated the latest annotations) -- Deprecated since version 2.1.0.
args, kwargs)
Update
setAnnotations
method toset_annotations
to avoid the deprecation warning and future breaks: