class_docstr: Tests for coverage splitter.
class_docstr_tok: ["Tests","for","coverage","splitter","."]
docstr: Test _get_cover_deterministic.
docstr_tok: ["Test","_get_cover_deterministic","."]
code: def test_get_cover_deterministic(self):
      """Test _get_cover_deterministic."""
      # generated_triples = generate_triples()
      cover = _get_cover_deterministic(triples=self.mapped_triples)
  
      # check type
      assert torch.is_tensor(cover)
      assert cover.dtype == torch.bool
      # check format
      assert cover.shape == (self.mapped_triples.shape[0],)
  
      # check coverage
      self.assertEqual(
          get_entities(self.mapped_triples),
          get_entities(self.mapped_triples[cover]),
          msg="entity coverage is not full",
      )
      self.assertEqual(
          get_relations(self.mapped_triples),
          get_relations(self.mapped_triples[cover]),
          msg="relation coverage is not full",
      )
  
imports: import numpy
  import pytest
  import torch
  from pykeen.triples.splitting import CleanupSplitter, CoverageSplitter, DeterministicCleaner, RandomizedCleaner, _get_cover_deterministic, get_absolute_split_sizes, normalize_ratios
  from pykeen.triples.utils import get_entities, get_relations
  from pykeen.utils import triple_tensor_to_set
  from tests.cases import CleanerTestCase, SplitterTestCase
label_desc: Use image node_id 1 for calling the CoverageSplitterTest obj's underlying member method code with example usage: obj.test_get_cover_deterministic() without return types