class_docstr: Tests for testing the correctness of the base model fall back scoring functions.
class_docstr_tok: ["Tests","for","testing","the","correctness","of","the","base","model","fall","back","scoring","functions","."]
docstr: Prepare for testing the scoring functions.
docstr_tok: ["Prepare","for","testing","the","scoring","functions","."]
code: def setUp(self):
      """Prepare for testing the scoring functions."""
      self.generator = torch.random.manual_seed(seed=42)
      self.triples_factory = MinimalTriplesFactory
      self.device = resolve_device()
      self.model = FixedModel(triples_factory=self.triples_factory).to(
          self.device
      )
  
imports: import unittest
  from dataclasses import dataclass
  from typing import Callable
  import torch
  from pykeen.datasets import Nations
  from pykeen.models import FixedModel, Model, TransE
  from pykeen.triples import TriplesFactory
  from pykeen.typing import COLUMN_HEAD, COLUMN_RELATION, COLUMN_TAIL, Target
  from pykeen.utils import extend_batch, resolve_device
label_desc: Use image node_id 1 for calling the TestBaseModelScoringFunctions obj's underlying member method code with example usage: obj.setUp() without return types