code: def test_lit_pipeline_with_dataset_without_validation():
      """Test training on a dataset without validation triples."""
      dataset = get_dataset(dataset="nations")
      dataset = EagerDataset(
          training=dataset.training,
          testing=dataset.testing,
          metadata=dataset.metadata,
      )
      lit_pipeline(
          training_loop="slcwa",
          training_loop_kwargs=dict(
              model="transe",
              dataset=dataset,
          ),
          trainer_kwargs=dict(
              # automatically choose accelerator
              accelerator="auto",
              # defaults to TensorBoard; explicitly disabled here
              logger=False,
              # disable checkpointing
              enable_checkpointing=False,
              # fast run
              max_epochs=2,
          ),
      )
  
file_path: pykeen/tests/test_lightning.py
imports: import itertools
  import pytest
  from pykeen import models
  from pykeen.datasets import EagerDataset, get_dataset
  from pykeen.typing import TRAINING
  from tests.utils import needs_packages
label_desc: Use image node_id 2 for calling a global function with example usage: test_lit_pipeline_with_dataset_without_validation() without return types