It seems you might have just copied the arguments from the docs without defining them.
This would work:
predictions = torch.randn(4, 3, 224, 224)
plt.imshow(torchvision.utils.make_grid(predictions).permute(1, 2, 0))