code: def variable_recurrent_factory(inner, reverse=False):
      if reverse:
          return VariableRecurrentReverse(inner)
      else:
          return VariableRecurrent(inner)
  
file_path: lightseq/lightseq/training/pytorch_quantization/nn/_functions/quant_rnn.py
imports: import warnings
  from torch.autograd import NestedIOFunction
  from torch.nn import functional
  import torch
  import itertools
  from functools import partial
label_desc: Use image node_id 7 for calling a global function with example usage: variable_recurrent_factory(inner, reverse) and returns: VariableRecurrentReverse, VariableRecurrent