class_docstr: Tests for phase initialization.
class_docstr_tok: ["Tests","for","phase","initialization","."]
code: def _verify_initialization(
      self, x: torch.FloatTensor
  ) -> None:  # noqa: D102
      # check value range
      assert (x >= -1.0).all()
      assert (x <= 1.0).all()
      # check modulus == 1
      mod = torch.view_as_complex(x).abs()
      assert torch.allclose(mod, torch.ones_like(mod))
  
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 PhasesTestCase obj's underlying member method code with example usage: obj._verify_initialization(x) without return types