class_docstr: Test the Bernoulli negative sampler.
class_docstr_tok: ["Test","the","Bernoulli","negative","sampler","."]
docstr: Verify entity corruption.
docstr_tok: ["Verify","entity","corruption","."]
code: def test_entity_corruption(self):
      """Verify entity corruption."""
      _verify_entity_corruption(
          instance=self.instance, positive_batch=self.positive_batch
      )
  
imports: import numpy.testing
  import torch
  import unittest_templates
  from pykeen.sampling import BasicNegativeSampler, BernoulliNegativeSampler, NegativeSampler, PseudoTypedNegativeSampler
  from pykeen.sampling.pseudo_type import create_index
  from tests.test_sampling import cases
label_desc: Use image node_id 1 for calling the BernoulliNegativeSamplerTest obj's underlying member method code with example usage: obj.test_entity_corruption() without return types