code: def _take_ints(elements: List[int], indexes: List[int]) -> List[int]:
      selected: List[int] = []
      for i in indexes:
          selected.append(elements[i])
      return selected
  
imports: import math
  import warnings
  from typing import List, Union, Tuple, Iterable, Any
  import torch
  from torch import nn, Tensor
  from pytorch_toolbelt.utils.support import pytorch_toolbelt_deprecated
  from pytorch_toolbelt.modules.interfaces import HasOutputFeaturesSpecification, FeatureMapsSpecification, AbstractEncoder
label_desc: Use image node_id 2 for calling a global function with example usage: _take_ints(elements, indexes) and returns: selected