class_docstr: Test the orthogonaliy regularizer.
code: def _expected_updated_term(
      self, inputs: Sequence[torch.FloatTensor]
  ) -> torch.FloatTensor:  # noqa: D102
      assert len(inputs) == 2
      return (
          functional.cosine_similarity(*inputs)
          .pow(2)
          .subtract(self.instance_kwargs["epsilon"])
          .relu()
          .sum()
      )
  
imports: import unittest
  from typing import Sequence
  import pytest
  import torch
  import unittest_templates
  from torch.nn import functional
  import pykeen.regularizers
  from pykeen.utils import get_expected_norm
  from tests import cases
  from tests.utils import rand
label_desc: Use image node_id 2 for calling the OrthogonalityRegularizerTest obj's underlying member method code with example usage: obj._expected_updated_term(inputs) and returns: functional