code: def publish_extension_events(self, extension_events):
          
          content = self._serialize.body(extension_events, '[ExtensionEvents]')
          self._send(http_method='POST',
                     location_id='0bf2bd3a-70e0-4d5d-8bf7-bd4a9c2ab6e7',
                     version='5.1-preview.1',
                     content=content)
docs: PublishExtensionEvents.
          [Preview API] API endpoint to publish extension install/uninstall events. This is meant to be invoked by EMS only for sending us data related to install/uninstall of an extension.
          :param [ExtensionEvents] extension_events: