def METHOD_NAME(test_case):
    device = random_device()
    x = random_tensor(4, 1, 1, 1, 1).to(device)
    y = random_tensor(4, 2, 3, 4, 5).to(device)
    z = torch.tensordot(x, y, dims=random(high=5).to(int).value())
    return z