code: def wrap_transformer_only(module, recurse, **kwargs):
      if recurse:
          return True
      else:
          return isinstance(module, nn.Transformer)
  
imports: from collections import OrderedDict
  from dataclasses import dataclass
  import tempfile
  import unittest
  import torch
  from torch import nn
  from fairscale.fair_dev.testing.testing import dist_init
  from fairscale.nn import FullyShardedDataParallel
  from fairscale.nn import auto_wrap, enable_wrap
label_desc: Use image node_id 1 for calling a global function with example usage: wrap_transformer_only(module, recurse) and returns: True, isinstance