code: def get_subscription(self, subscription_id, query_flags=None):
          
          route_values = {}
          if subscription_id is not None:
              route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str')
          query_parameters = {}
          if query_flags is not None:
              query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str')
          response = self._send(http_method='GET',
                                location_id='70f911d6-abac-488c-85b3-a206bf57e165',
                                version='5.0-preview.1',
                                route_values=route_values,
                                query_parameters=query_parameters)
          return self._deserialize('NotificationSubscription', response)
docs: GetSubscription.
          [Preview API] Get a notification subscription by its ID.
          :param str subscription_id:
          :param str query_flags:
          :rtype: :class:`<NotificationSubscription> <azure.devops.v5_0.notification.models.NotificationSubscription>`