code: def test_exceptions(self):
      assert_raises(ValueError, triu_indices_from, np.ones((2,)))
      assert_raises(ValueError, triu_indices_from, np.ones((2, 2, 2)))
  
imports: import functools
  from unittest import expectedFailure, skipIf
  import pytest
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 1 for calling the TestTriuIndicesFrom obj's underlying member method code with example usage: obj.test_exceptions() without return types