code: def check_frequency(self, check_idx):
      return check_idx % self.batch_freq == 0
  
file_path: NeMo/nemo/collections/multimodal/models/text_to_image/controlnet/util.py
imports: import os
  import numpy
  import torch
  import torchvision
  from PIL import Image
  from pytorch_lightning import Callback
  from pytorch_lightning.utilities.rank_zero import rank_zero_only
label_desc: Use image node_id 4 for calling the ImageLogger obj's underlying member method code with example usage: obj.check_frequency(check_idx) and returns: unknown