code: def log_images(self, images, n_log: int = None, prefix: str = ""):
      for k, v in images.items():
          if isinstance(v, torch.Tensor):
              if n_log is not None:
                  v = v[:n_log]
              self.logger.experiment.add_images(
                  prefix + k, v, self.current_epoch
              )
  
file_path: BigDL/python/nano/client-application/VideoStylization/litmodels.py
imports: from typing import OrderedDict
  import torch
  import torch.nn
  import torch.nn.functional
  import pytorch_lightning
  from feature_model import FeaturesNet
  from original_models import Discriminator, Generator
label_desc: Use image node_id 4 for calling the LitModel obj's underlying member method code with example usage: obj.log_images(images, n_log, prefix) without return types