code: def forward(self, x: Tensor) -> List[Tensor]:
      all_feature_maps = self.encoder(x)
      return _take_tensors(all_feature_maps, self._layers)
  
file_path: pytorch-toolbelt/pytorch_toolbelt/modules/encoders/timm/common.py
imports: import math
  import warnings
  import torch
  from typing import List, Union
  from torch import Tensor, nn
  from ..common import EncoderModule, _take_ints, _take_tensors
label_desc: Use image node_id 2 for calling the GenericTimmEncoder obj's underlying member method code with example usage: obj.forward(x) and returns: _take_tensors