def METHOD_NAME(test_case):
    m = torch.nn.ConstantPad1d(
        padding=random(1, 6).to(_size_2_t), value=random().to(float)
    )
    m.train(random())
    device = random_device()
    m.to(device)
    x = random_tensor(ndim=3, dim1=random(1, 6), dim2=random(1, 6)).to(device)
    y = m(x)
    return y