code: def get_widget_metadata(self, contribution_id, project=None):
          
          route_values = {}
          if project is not None:
              route_values['project'] = self._serialize.url('project', project, 'str')
          if contribution_id is not None:
              route_values['contributionId'] = self._serialize.url('contribution_id', contribution_id, 'str')
          response = self._send(http_method='GET',
                                location_id='6b3628d3-e96f-4fc7-b176-50240b03b515',
                                version='5.0-preview.1',
                                route_values=route_values)
          return self._deserialize('WidgetMetadataResponse', response)
docs: GetWidgetMetadata.
          [Preview API] Get the widget metadata satisfying the specified contribution ID.
          :param str contribution_id: The ID of Contribution for the Widget
          :param str project: Project ID or project name
          :rtype: :class:`<WidgetMetadataResponse> <azure.devops.v5_0.dashboard.models.WidgetMetadataResponse>`