parameters: (boxes)
docstring: Check if info returned from boxes is the same as on the parent side
docstring_summary: Check if info returned from boxes is the same as on the parent side
docstring_tokens: Check if info returned from boxes is the same as on the parent side
function: def validate_info(boxes):
      """ Check if info returned from boxes is the same as on the parent side """
      [box.send_data([MessageID.INFO]) for box in boxes]
      for box in boxes:
          msg = box.pipe.recv()
          if msg[0] != MessageID.INFO:
              raise ConnectionError(
                  f"Connection to {box.box_name} seems to be broken.")
          np.testing.assert_equal(
              box.box_length,
              msg[1],
              err_msg="Server side box length (actual) differs from client side (desired).")
          np.testing.assert_equal(
              box.num_part,
              msg[2],
              err_msg="Server side num part (actual) differs from client side (desired)")
          logging.debug(
              f"Validation correct. Values of {box.box_name}:\n"
              f"Box length:\t{box.box_length}\nNum Part:\t{box.num_part}.")
function_tokens: def validate_info ( boxes ) : [ box . send_data ( [ MessageID . INFO ] ) for box in boxes ] for box in boxes : msg = box . pipe . recv ( ) if msg [ 0 ] != MessageID . INFO : raise ConnectionError ( f"Connection to {box.box_name} seems to be broken." ) np . testing . assert_equal ( box . box_length , msg [ 1 ] , err_msg = "Server side box length (actual) differs from client side (desired)." ) np . testing . assert_equal ( box . num_part , msg [ 2 ] , err_msg = "Server side num part (actual) differs from client side (desired)" ) logging . debug ( f"Validation correct. Values of {box.box_name}:\n" f"Box length:\t{box.box_length}\nNum Part:\t{box.num_part}." )