code: def test_normalize_invalid_ratio():
      """Test invalid ratios."""
      cases = [
          1.1,
          [1.1],
          [0.8, 0.3],
          [0.8, 0.1, 0.2],
      ]
      for ratios in cases:
          with pytest.raises(ValueError):
              _ = normalize_ratios(ratios=ratios)
  
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 3 for calling a global function with example usage: test_normalize_invalid_ratio() without return types