class_docstr: Base test class and used for CPU case.
code: def _get_shared_params_transformer(self, seed=0):
      module = self._get_transformer(seed=seed)
      # share the FFNs
      for enc_layer, dec_layer in zip(
          module.encoder.layers, module.decoder.layers
      ):
          dec_layer.linear1.weight = enc_layer.linear1.weight
          dec_layer.linear2.weight = enc_layer.linear2.weight
      return module
  
imports: from collections import OrderedDict
  import unittest
  import torch
  from fairscale.fair_dev.testing.testing import objects_are_equal
  from fairscale.nn import FlattenParamsWrapper
label_desc: Use image node_id 4 for calling the TestFlattenParams obj's underlying member method code with example usage: obj._get_shared_params_transformer(seed) and returns: module