docstr: Manually all-reduce gradients (if required).
docstr_tok: ["Manually","all-reduce","gradients","(","if","required",")","."]
code: def all_reduce_grads(self, module):
      """Manually all-reduce gradients (if required)."""
      if hasattr(module, "all_reduce_grads"):
          module.all_reduce_grads()
  
imports: import torch
  from fairseq import utils
  from fairseq.dataclass.utils import gen_parser_from_dataclass
  from collections import defaultdict
label_desc: Use image node_id 14 for calling the FairseqOptimizer obj's underlying member method code with example usage: obj.all_reduce_grads(module) without return types