code: def _get_ratios(
      *triples_factories: CoreTriplesFactory,
  ) -> Sequence[float]:
      total = sum(tf.num_triples for tf in triples_factories)
      ratios = normalize_ratios(
          [tf.num_triples / total for tf in triples_factories]
      )
      return ratios
  
imports: from typing import List, Sequence
  import click
  from .splitting import normalize_ratios, split
  from .triples_factory import CoreTriplesFactory, cat_triples
label_desc: Use image node_id 2 for calling a global function with example usage: _get_ratios() and returns: ratios