code: def test_manual_stuff(self):
      A_ = torch.rand(3, 4)
      B_ = torch.rand(4, 5)
      i, j, k = dims()
      A = A_[i, k]
      B = B_[k, j]
      C = (A.expand(j) * B.expand(i)).sum(k)
      self.assertTrue(torch.allclose(C.order(i, j), torch.mm(A_, B_)))
      self.assertTrue(torch.allclose(torch.triu(A_, 0), triu(A_)))
  
      D_ = torch.randint(0, 3, (6,))
      d = dims()
      D = D_[d]
  
      A.index([i], [D]).order(k, d)
  
imports: from functorch.dim import Tensor, Dim, dims, dimlists, stack, DimensionBindError, DimList
  from attn_ft import BertSelfAttention, Linear
  from attn_positional import BertSelfAttention
  from torch.testing._internal.common_utils import TestCase, run_tests, TEST_CUDA
  from unittest import skip, skipIf
  import torch
  import gc
  from functorch._C import dim
  from contextlib import contextmanager
  from time import perf_counter
label_desc: Use image node_id 3 for calling the TestMin obj's underlying member method code with example usage: obj.test_manual_stuff() without return types