
dims (Tuple[int], optional) -- dimensions of
        "A" to be moved. If None, no dimensions are moved. Default:
        None.

Keyword Arguments:
      out (Tensor, optional) -- output tensor. Ignored if
      None. Default: None.
Raises:
      RuntimeError -- if the reshaped "A".view(m, m) with m as
      above  is not     invertible or the product of the first "ind"
      dimensions is not equal     to the product of the rest of the
      dimensions.
Examples:
  >>> A = torch.eye(2 * 3 * 4).reshape((2 * 3, 4, 2, 3, 4))
  >>> B = torch.randn(2 * 3, 4)
  >>> X = torch.linalg.tensorsolve(A, B)
  >>> X.shape
  torch.Size([2, 3, 4])
  >>> torch.allclose(torch.tensordot(A, X, dims=X.ndim), B)
  True

  >>> A = torch.randn(6, 4, 4, 3, 2)
  >>> B = torch.randn(4, 3, 2)
  >>> X = torch.linalg.tensorsolve(A, B, dims=(0, 2))
  >>> X.shape
  torch.Size([6, 4])
  >>> A = A.permute(1, 3, 4, 0, 2)
