class_docstr: Updater for kvstore.
docstr: Sets updater states.
docstr_tok: ["Sets","updater","states","."]
code: def set_states(self, states):
      """Sets updater states."""
      states = pickle.loads(states)
      if isinstance(states, tuple) and len(states) == 2:
          self.states, self.optimizer = states
      else:
          self.states = states
      self.states_synced = dict.fromkeys(self.states.keys(), False)
  
file_path: mxnet/python/mxnet/optimizer/updater.py
imports: from __future__ import absolute_import
  import pickle
  import numpy
  from ..base import py_str
  from ..ndarray import NDArray
  from ..profiler import scope
  from ..util import is_np_array
  from .utils import _as_classic
label_desc: Use image node_id 4 for calling the Updater obj's underlying member method code with example usage: obj.set_states(states) without return types