code: def update(self, index, weight, grad, state):
      self._do_allreduce(index, grad)
      self._optimizer.update(index, weight, grad, state)
  
file_path: insightface/recognition/partial_fc/mxnet/optimizer.py
imports: import horovod.mxnet
  import mxnet
  from mxnet import nd
label_desc: Use image node_id 5 for calling the DistributedOptimizer obj's underlying member method code with example usage: obj.update(index, weight, grad, state) without return types