code: def compute_consumed_samples(self, steps_since_resume=0):
      consumed_samples = (
          self.init_consumed_samples
          + steps_since_resume
          * self.trainer.world_size
          * self.cfg.micro_batch_size
          * self.trainer.accumulate_grad_batches
      )
      return int(consumed_samples)
  
file_path: NeMo/nemo/collections/multimodal/models/text_to_image/stable_diffusion/diffusion_model.py
imports: import re
  from abc import ABC, abstractclassmethod
  from typing import Any, Optional
  import torch
  from nemo.core.classes import ModelPT
  from nemo.utils import logging
label_desc: Use image node_id 5 for calling the DiffusionModel obj's underlying member method code with example usage: obj.compute_consumed_samples(steps_since_resume) and returns: int