class_docstr: callback to be used with LightningTrainer and torchmetric
  Warning: 'optimizer.enable_state_sharding=True' is not supported
code: def _get_iterations_for_logging(self, trainer: Trainer):
      return trainer.fit_loop.batch_idx + 1
  
imports: import logging
  from typing import Any, Dict, List, Optional
  import torch
  from mmf.common.registry import registry
  from mmf.common.sample import SampleList
  from mmf.utils.timer import Timer
  from pytorch_lightning import LightningModule, Trainer
  from pytorch_lightning.callbacks.base import Callback
label_desc: Use image node_id 10 for calling the LightningTorchMetricsCallback obj's underlying member method code with example usage: obj._get_iterations_for_logging(trainer) and returns: unknown