code: def worker_init_fn(worker_id, base_seed=0):
      """Set random seed for each worker in DataLoader."""
      seed = base_seed + worker_id
      random.seed(seed)
      np.random.seed(seed)
  
file_path: espnet/espnet2/iterators/sequence_iter_factory.py
imports: import itertools
  import random
  from functools import partial
  from typing import Any, Sequence, Union
  import numpy
  from torch.utils.data import DataLoader
  from typeguard import check_argument_types
  from espnet2.iterators.abs_iter_factory import AbsIterFactory
  from espnet2.samplers.abs_sampler import AbsSampler
label_desc: Use image node_id 1 for calling a global function with example usage: worker_init_fn(worker_id, base_seed) without return types