docstr: Ensure torch.mm(A_sparse.t(), B) throws error
docstr_tok: ["Ensure","torch.mm","(","A_sparse.t","(",")",",","B",")","throws","error"]
code: def test_mm_sparse_first_TN(
      self, dtype, dense_input_shape, device, backend
  ):
      """
      Ensure torch.mm(A_sparse.t(), B) throws error
      """
      SparseSemiStructuredTensor._FORCE_CUTLASS = backend == "cutlass"
      A = rand_sparse_semi_structured_mask(128, 256, dtype=dtype)
      A_sparse = to_sparse_semi_structured(A)
  
      B = torch.rand(dense_input_shape, device=A_sparse.device).to(
          dtype
      )
  
      with self.assertRaisesRegex(
          NotImplementedError,
          r"arg0: SparseSemiStructuredTensor\(.*transposed=True",
      ):
          torch.mm(A_sparse.t(), B)
  
imports: import itertools
  import random
  import unittest
  import torch
  from torch import nn
  from torch.sparse.semi_structured import _DTYPE_TO_SEMI_STRUCTURED_SPARSE_CONFIG, SparseSemiStructuredTensor, to_sparse_semi_structured
  from torch.testing import make_tensor
  from torch.testing._internal.common_device_type import dtypes, instantiate_device_type_tests
  from torch.testing._internal.common_dtype import all_types_and_complex
  import torch._dynamo.test_case
  from torch.testing._internal.common_utils import parametrize, run_tests, subtest, TestCase, TEST_WITH_ROCM, IS_WINDOWS
  from torch.utils._triton import has_triton
label_desc: Use image node_id 5 for calling the TestSparseSemiStructured obj's underlying member method code with example usage: obj.test_mm_sparse_first_TN(dtype, dense_input_shape, device, backend) without return types