class_docstr: Tests for initialization from pretrained embedding.
class_docstr_tok: ["Tests","for","initialization","from","pretrained","embedding","."]
docstr: Prepare for test.
docstr_tok: ["Prepare","for","test","."]
code: def setUp(self) -> None:
      """Prepare for test."""
      self.pretrained = torch.rand(self.num_entities, *self.shape)
      self.initializer = pykeen.nn.init.PretrainedInitializer(
          tensor=self.pretrained
      )
  
imports: from typing import ClassVar
  import torch
  from class_resolver import HintOrType
  import pykeen.nn.init
  from pykeen.datasets import Nations
  from pykeen.nn.modules import ComplExInteraction, Interaction, QuatEInteraction
  from tests import cases
  from ..utils import needs_packages
label_desc: Use image node_id 1 for calling the PretrainedInitializerTestCase obj's underlying member method code with example usage: obj.setUp() without return types