class_docstr: Tests for quaternion initialization.
class_docstr_tok: ["Tests","for","quaternion","initialization","."]
code: def _verify_initialization(self, x: torch.FloatTensor) -> None:
      # check value range (actually [-s, +s] with s = 1/sqrt(2*n))
      assert (x >= -1.0).all()
      assert (x <= 1.0).all()
  
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 QuaternionTestCase obj's underlying member method code with example usage: obj._verify_initialization(x) without return types