code: def assert_counts(self, trainer, module, count):
      assert (
          trainer.global_step == count
      ), f"{trainer.global_step} != {count} != {module.max_steps}"
      assert (
          trainer.global_step == module.max_steps
      ), f"{trainer.global_step} != {count} != {module.max_steps}"
  
imports: import math
  import random
  import omegaconf
  import pytest
  import pytorch_lightning
  import torch
  import torch.optim
  from pytorch_lightning.utilities import rank_zero_only
  from nemo.core import config, optim
  from nemo.core.optim.lr_scheduler import AVAILABLE_SCHEDULERS
  from nemo.core.optim.optimizers import AVAILABLE_OPTIMIZERS
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling the Callback obj's underlying member method code with example usage: obj.assert_counts(trainer, module, count) without return types