def METHOD_NAME(pub_commands, sub_commands, pubsub_commands, logger):
    """Get test definitions in command lists and execute each process."""
    pubs_proc = []
    subs_proc = []
    pubsubs_proc = []
    for subscriber_command in sub_commands:
        logger.info(f'Executing subcriber: {subscriber_command}')
        subs_proc.append(execute_command(subscriber_command))
    for pubsub_command in pubsub_commands:
        logger.info(f'Executing pubsub: {pubsub_command}')
        pubsubs_proc.append(execute_command(pubsub_command))
    for publisher_command in pub_commands:
        logger.info(f'Executing publisher: {publisher_command}')
        pubs_proc.append(execute_command(publisher_command))
    ret_value = 0
    for proc in subs_proc:
        proc.communicate()
        ret_value = ret_value + proc.returncode
    for proc in pubsubs_proc:
        proc.communicate()
        ret_value = ret_value + proc.returncode
    for proc in pubs_proc:
        proc.kill()
    return ret_value