class_docstr: A key-value store for synchronization of values, over multiple devices.
class_docstr_tok: ["A","key-value","store","for","synchronization","of","values",",","over","multiple","devices","."]
docstr: Loads the optimizer (updater) state from the file.
  
  Parameters
  ----------
  fname : str
      Path to input states file.
docstr_tok: ["Loads","the","optimizer","(","updater",")","state","from","the","file",".","Parameters","--","--","--","--","--","fname",":","str","Path","to","input","states","file","."]
code: def load_optimizer_states(self, fname):
      """Loads the optimizer (updater) state from the file.
  
      Parameters
      ----------
      fname : str
          Path to input states file.
      """
      assert (
          self._updater is not None
      ), "Cannot load states for distributed training"
      self._updater.set_states(open(fname, "rb").read())
  
imports: import pickle
  import ctypes
  import os
  from ..ndarray import NDArray
  from ..ndarray import _ndarray_cls
  from ..base import _LIB, c_str
  from ..base import check_call, mx_uint, py_str
  from ..base import NDArrayHandle, KVStoreHandle
  from ..None import optimizer
  from .base import _ctype_key_value, _ctype_dict, KVStoreBase
label_desc: Use image node_id 16 for calling the KVStore obj's underlying member method code with example usage: obj.load_optimizer_states(fname) without return types