def METHOD_NAME(test_case):
    device = random_device()
    x = random_tensor(4, 1, 3, 2, 5).to(device)
    y = random_tensor(4, 4, 2, 3, 5).to(device)
    z = torch.tensordot(x, y, dims=[[-3, -2, -4], [-2, -3, -4]])
    return z