docs: def query_entities(self,
                         environment_id,
                         collection_id,
                         feature=None,
                         entity=None,
                         context=None,
                         count=None,
                         evidence_count=None,
                         **kwargs):
          """
          Knowledge Graph entity query.
  
          See the [Knowledge Graph
          documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-kg#kg)
          for more details.
  
          :param str environment_id: The ID of the environment.
          :param str collection_id: The ID of the collection.
          :param str feature: The entity query feature to perform. Supported features are
          `disambiguate` and `similar_entities`.
          :param QueryEntitiesEntity entity: A text string that appears within the entity
          text field.
          :param QueryEntitiesContext context: Entity text to provide context for the
          queried entity and rank based on that association. For example, if you wanted to
          query the city of London in England your query would look for `London` with the
          context of `England`.
          :param int count: The number of results to return. The default is `10`. The
          maximum is `1000`.
          :param int evidence_count: The number of evidence items to return for each result.
          The default is `0`. The maximum number of evidence items per query is 10,000.
          :param dict headers: A `dict` containing the request headers
          :return: A `DetailedResponse` containing the result, headers and HTTP status code.
          :rtype: DetailedResponse
          """
  
          if environment_id is None:
              raise ValueError('environment_id must be provided')
          if collection_id is None:
              raise ValueError('collection_id must be provided')
          if entity is not None:
              entity = self._convert_model(entity, QueryEntitiesEntity)
          if context is not None:
              context = self._convert_model(context, QueryEntitiesContext)
  
          headers = {}
          if 'headers' in kwargs:
              headers.update(kwargs.get('headers'))
          sdk_headers = get_sdk_headers('discovery', 'V1', 'query_entities')
          headers.update(sdk_headers)
  
          params = {'version': self.version}
  
          data = {
              'feature': feature,
              'entity': entity,
              'context': context,
              'count': count,
              'evidence_count': evidence_count
          }
  
          url = '/v1/environments/{0}/collections/{1}/query_entities'.format(
              *self._encode_path_vars(environment_id, collection_id))
          response = self.request(
              method='POST',
              url=url,
              headers=headers,
              params=params,
              json=data,
              accept_json=True)
          return response