class_docstr: Test the orthogonaliy regularizer.
docstr: Test update function of TransHRegularizer.
docstr_tok: ["Test","update","function","of","TransHRegularizer","."]
code: def test_update_error(self):
      """Test update function of TransHRegularizer."""
      # Tests that exception will be thrown when more than or less than two tensors are passed
      for num in (1, 3):
          with self.assertRaises(ValueError) as context:
              self.instance.update(
                  *(
                      rand(
                          self.batch_size,
                          10,
                          generator=self.generator,
                          device=self.device,
                      )
                      for _ in range(num)
                  ),
              )
              self.assertTrue(
                  "Expects exactly two tensors" in context.exception
              )
  
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 5 for calling the OrthogonalityRegularizerTest obj's underlying member method code with example usage: obj.test_update_error() without return types