code: def _get_mapped_triples(
      dataset: Dataset, parts: Collection[str]
  ) -> Collection[Tuple[int, int, int]]:
      return torch.cat(
          [dataset.factory_dict[part].mapped_triples for part in parts],
          dim=0,
      ).tolist()
  
file_path: pykeen/src/pykeen/datasets/analysis.py
imports: import logging
  from typing import Callable, Collection, Optional, Tuple, Union
  import pandas
  import torch
  from .base import Dataset
  from ..constants import PYKEEN_DATASETS
  from ..triples import analysis
  from ..typing import MappedTriples
label_desc: Use image node_id 1 for calling a global function with example usage: _get_mapped_triples(dataset, parts) and returns: torch