def METHOD_NAME(test_case):
    m = torch.nn.AdaptiveAvgPool2d(output_size=random().to(_size_2_opt_t_not_none))
    m.train(random())
    device = random_device()
    m.to(device)
    x = random_tensor(ndim=4).to(device)
    y = m(x)
    return y