docstr: Tests that discrepancy in gradients raises an error.
code: def test_wrong_gradients_raises_assertion(self):
      """Tests that discrepancy in gradients raises an error."""
      model = PoincareModel(self.data, negative=3)
      model._loss_grad = Mock(
          return_value=np.zeros((2 + model.negative, model.size))
      )
      with self.assertRaises(AssertionError):
          model.train(epochs=1, batch_size=1, check_gradients_every=1)
  
imports: import logging
  import os
  import tempfile
  import unittest
  import numpy
  from gensim.models.poincare import PoincareRelations, PoincareModel, PoincareKeyedVectors
  from gensim.test.utils import datapath
label_desc: Use image node_id 17 for calling the TestPoincareModel obj's underlying member method code with example usage: obj.test_wrong_gradients_raises_assertion() without return types