code: def _reverse_repeat_tuple(t, n):
      r"""Reverse the order of `t` and repeat each element for `n` times.
  
      This can be used to translate padding arg used by Conv and Pooling modules
      to the ones used by `F.pad`.
      """
      return tuple(x for x in reversed(t) for _ in range(n))
  
imports: from typing import Dict, Union, Tuple, Callable, Optional
  from collections.abc import Iterable
  from itertools import repeat
  import torch
  import torch.nn
  import torch.nn.functional
  from torch import Tensor
  from .target_space import TargetType
label_desc: Use image node_id 2 for calling a global function with example usage: _reverse_repeat_tuple(t, n) and returns: tuple