def METHOD_NAME(test_case):
    device = random_device()
    k = random(1, 6)
    x = random_tensor(ndim=2, dim1=k).to(device)
    y = random_tensor(ndim=2, dim0=k).to(device)
    z = torch.mm(x, y)
    return z