def save_image(tensor, filename, nrow=<NUM_LIT:8>, padding=<NUM_LIT:2>, pad_value=<NUM_LIT:0>):
from PIL import Image<EOL>grid = make_grid(tensor, nrow=nrow, padding=padding, pad_value=pad_value)<EOL>im = Image.fromarray(pre_pillow_float_img_process(grid))<EOL>im.save(filename)<EOL>
Save a given Tensor into an image file.

    Args:
        tensor (Tensor or list): Image to be saved. If given a mini-batch tensor,
            saves the tensor as a grid of images by calling ``make_grid``.
        **kwargs: Other arguments are documented in ``make_grid``.