code: def get_epoch_trigger(n_epochs, dataset, local_batch_size, comm):
      """Get the trigger that behaves like an epoch trigger.
  
      .. note::
  
          This API is deprecated. Please use standard epoch triggers.
  
      Args:
          n_epochs (int): The number of epochs.
          dataset: Sub dataset of each worker.
          local_batch_size (int): Batch size of each worker.
          comm: ChainerMN communicator or MPI4py communicator.
  
      Returns:
          The trigger that behaves like the epoch trigger.
      """
  
      warnings.warn(
          "get_epoch_trigger is deprecated. Please use standard epoch triggers.",
          DeprecationWarning,
      )
  
      n_iterations = n_epochs * get_n_iterations_for_one_epoch(
          dataset, local_batch_size, comm
      )
      return n_iterations, "iteration"
  
file_path: chainer/chainermn/datasets/scatter.py
imports: import warnings
  import chainer.datasets
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: get_epoch_trigger(n_epochs, dataset, local_batch_size, comm) and returns: n_iterations,  str