class_docstr: A wrapper around SLCWATrainingLoop.
class_docstr_tok: ["A","wrapper","around","SLCWATrainingLoop","."]
code: def _process_batch(
      self,
      batch: MappedTriples,
      start: int,
      stop: int,
      label_smoothing: float = 0.0,
      slice_size: Optional[int] = None,
  ) -> torch.FloatTensor:  # noqa: D102
      assert (stop - start) <= self.sub_batch_size
  
      # check for empty batches
      if torch.is_tensor(batch):
          assert batch[start:stop].shape[0] > 0
  
      return super()._process_batch(
          batch=batch,
          start=start,
          stop=stop,
          label_smoothing=label_smoothing,
          slice_size=slice_size,
      )
  
file_path: pykeen/tests/test_training/test_stopping.py
imports: import unittest
  from typing import List, Optional
  import torch
  from torch import optim
  from pykeen.datasets import Nations
  from pykeen.models import FixedModel, Model
  from pykeen.stoppers.early_stopping import EarlyStopper
  from pykeen.training import SLCWATrainingLoop
  from pykeen.triples import TriplesFactory
  from pykeen.typing import MappedTriples
  from tests.mocks import MockEvaluator
label_desc: Use image node_id 2 for calling the DummyTrainingLoop obj's underlying member method code with example usage: obj._process_batch(batch, start, stop, label_smoothing, slice_size) and returns: super