#NEWLINE# def connect_to_zk( servers , **kwargs ) : #NEWLINE# #INDENT# "\n\tFunction used to connect to zookeeper for pettingzoo.multiprocessing.\n\n\t:param server: list of zookeeper servers to connect to in the form of a \t  comma seperated list of addresses:port'localhost:2181,10.5.2.1:2181'\n\t:rtype: zc.zk.ZooKeeper connection\n\t" #NEWLINE# conn = zc . zk . ZooKeeper ( servers , ** kwargs ) #NEWLINE# conn . watches . lock = threading . RLock ( ) #NEWLINE# return conn