class_docstr: A key-value store for testing.
class_docstr_tok: ["A","key-value","store","for","testing","."]
docstr: Registers an optimizer with the kvstore.
  
  When using a single machine, this function updates the local optimizer.
  If using multiple machines and this operation is invoked from a worker node,
  it will serialized the optimizer with pickle and send it to all servers.
  The function returns after all servers have been updated.
  
  Parameters
  ----------
  optimizer : KVStoreBase
      The new optimizer for the store
docstr_tok: ["Registers","an","optimizer","with","the","kvstore",".","When","using","a","single","machine",",","this","function","updates","the","local","optimizer",".","If","using","multiple","machines","and","this","operation","is","invoked","from","a","worker","node",",","it","will","serialized","the","optimizer","with","pickle","and","send","it","to","all","servers",".","The","function","returns","after","all","servers","have","been","updated",".","Parameters","--","--","--","--","--","optimizer",":","KVStoreBase","The","new","optimizer","for","the","store"]
code: def set_optimizer(self, optimizer):
      """Registers an optimizer with the kvstore.
  
      When using a single machine, this function updates the local optimizer.
      If using multiple machines and this operation is invoked from a worker node,
      it will serialized the optimizer with pickle and send it to all servers.
      The function returns after all servers have been updated.
  
      Parameters
      ----------
      optimizer : KVStoreBase
          The new optimizer for the store
      """
      raise NotImplementedError()
  
imports: from array import array
  import ctypes
  import warnings
  from ..ndarray import NDArray
  from ..base import _LIB, c_str_array, c_handle_array, c_array, c_array_buf, c_str
  from ..base import check_call, string_types
  from ..base import KVStoreHandle
  from ..profiler import set_kvstore_handle
label_desc: Use image node_id 7 for calling the TestStore obj's underlying member method code with example usage: obj.set_optimizer(optimizer) without return types