code: def _make_nested_padding(pad_shape, pad_token):
      """Create nested lists of pad_token of shape pad_shape."""
      result = [pad_token]
      for dimension in reversed(pad_shape):
          result = [result * dimension]
      return result[0]
  
imports: import itertools
  from collections import Counter
  from typing import Dict, List, Optional, Tuple
  import torch
  from pytext.common.constants import SpecialTokens, Token
  from pytext.utils import cuda, precision
label_desc: Use image node_id 3 for calling a global function with example usage: _make_nested_padding(pad_shape, pad_token) and returns: result