code: def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_name, extension_name, draft_id, file_name=None, **kwargs):
          
          route_values = {}
          if publisher_name is not None:
              route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str')
          if extension_name is not None:
              route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str')
          if draft_id is not None:
              route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str')
          if "callback" in kwargs:
              callback = kwargs["callback"]
          else:
              callback = None
          content = self._client.stream_upload(upload_stream, callback=callback)
          response = self._send(http_method='PUT',
                                location_id='02b33873-4e61-496e-83a2-59d1df46b7d8',
                                version='5.0-preview.1',
                                route_values=route_values,
                                content=content,
                                media_type='application/octet-stream')
          return self._deserialize('ExtensionDraft', response)
docs: UpdatePayloadInDraftForEditExtension.
          [Preview API]
          :param object upload_stream: Stream to upload
          :param str publisher_name:
          :param str extension_name:
          :param str draft_id:
          :param String file_name: Header to pass the filename of the uploaded data
          :rtype: :class:`<ExtensionDraft> <azure.devops.v5_0.gallery.models.ExtensionDraft>`