code: async def _set_annotations(entity_tag, annotations, connection):
      
      # TODO: ensure annotations is dict with only string keys
      # and values.
      log.debug('Updating annotations on %s', entity_tag)
      facade = client.AnnotationsFacade.from_connection(connection)
      args = client.EntityAnnotations(
          entity=entity_tag,
          annotations=annotations,
      )
      return await facade.Set([args])
docs: Set annotations on the specified entity.
  
      :param annotations map[string]string: the annotations as key/value
          pairs.