class_docstr: Wrapper class for the basic BytePS API.
class_docstr_tok: ["Wrapper","class","for","the","basic","BytePS","API","."]
docstr: A function that restarts BytePS after being suspended, for elastic training.
docstr_tok: ["A","function","that","restarts","BytePS","after","being","suspended",",","for","elastic","training","."]
code: def resume(self, num_workers, num_servers, global_rank, context=None):
      """A function that restarts BytePS after being suspended, for elastic training."""
      # set DMLC environment variables here
      os.environ["DMLC_NUM_WORKER"] = str(num_workers)
      os.environ["DMLC_NUM_SERVER"] = str(num_servers)
      os.environ["BYTEPS_GLOBAL_RANK"] = str(global_rank)
      return self.C_LIB_CTYPES.byteps_resume(num_workers, num_servers)
  
file_path: byteps/byteps/common/__init__.py
imports: import ctypes
  import os
  import sysconfig
  import atexit
label_desc: Use image node_id 5 for calling the BytePSBasics obj's underlying member method code with example usage: obj.resume(num_workers, num_servers, global_rank, context) and returns: self