class_docstr: Shared RNN model.
class_docstr_tok: ["Shared","RNN","model","."]
code: def get_f(self, name):
      name = name.lower()
      if name == "relu":
          f = F.relu
      elif name == "tanh":
          f = F.tanh
      elif name == "identity":
          f = lambda x: x
      elif name == "sigmoid":
          f = F.sigmoid
      return f
  
imports: import numpy
  import collections
  import torch
  from torch import nn
  import torch.nn.functional
  from torch.autograd import Variable
  import models.shared_base
  import utils
label_desc: Use image node_id 5 for calling the RNN obj's underlying member method code with example usage: obj.get_f(name) and returns: f