code: def _normalize_parts(
      dataset: Dataset, parts: Union[None, str, Collection[str]]
  ) -> Collection[str]:
      if parts is None:
          parts = dataset.factory_dict.keys()
      elif isinstance(parts, str):
          parts = [parts]
      # unique
      return list(set(parts))
  
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 2 for calling a global function with example usage: _normalize_parts(dataset, parts) and returns: list