code: def _batch_example_iterator(bsz: int, *args) -> Iterator:
      """
      Batches the provided argument.
      """
      for i in range(bsz):
          curr_args = [
              _select_example(args[j], i, bsz) for j in range(len(args))
          ]
          yield tuple(curr_args)
  
file_path: captum/captum/attr/_utils/batching.py
imports: import typing
  import warnings
  from typing import Any, Callable, Iterator, Tuple, Union
  import torch
  from captum._utils.common import _format_additional_forward_args, _format_output, _format_tensor_into_tuples, _reduce_list
  from captum._utils.typing import TargetType, TensorOrTupleOfTensorsGeneric, TupleOrTensorOrBoolGeneric
  from captum.attr._utils.approximation_methods import approximation_parameters
  from torch import Tensor
label_desc: Use image node_id 8 for calling a global function with example usage: _batch_example_iterator(bsz) without return types