code: def main():
      localAddr = "127.0.0.1:4411"
  
      broker_rpc = moolib.Rpc()
      broker_rpc.set_name("broker")
      broker = moolib.Broker(broker_rpc)
      broker_rpc.listen(localAddr)
  
      clients = []
      for i in range(4):
          clients.append(Client(localAddr, i))
  
      for _ in range(30):
          for client in clients:
              client.update()
  
          broker.update()
  
          time.sleep(0.1)
  
      # assert clients[0].group.members() == ["client 0", "client 1", "client 2", "client 3"]
      # del clients[1]
  
      for _ in range(300):
          for client in clients:
              client.update()
  
          broker.update()
  
          time.sleep(0.1)
  
      print("All done")
  
file_path: moolib/test/test_reduce.py
imports: import moolib
  import time
  import torch
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types