def METHOD_NAME(tests_definition):
    """Use list dictionary to get commands args for each test process."""
    sub_args = []
    pub_args = []
    pubsub_args = []
    for test in tests_definition:
        if 'kind' not in test.keys():
            print('ARGUMENT ERROR : '
                  'Test definition requites <kind> field for each participant')
            continue
        # All processes has seed argument
        test_arguments = ['--seed', seed]
        possible_arguments = ['samples',
                              'wait',
                              'magic',
                              'publishers',
                              'sleep_before_exec']
        for argument in possible_arguments:
            if argument in test.keys():
                test_arguments.append('--' + argument)
                test_arguments.append(test[argument])
        # Add arguments without value
        possible_flags = ['exit_on_lost_liveliness',
                          'zero_copy',
                          'fixed_type',
                          'notexit']
        for flag in possible_flags:
            if flag in test.keys():
                test_arguments.append('--' + flag)
        xmlfile_arg = 'xmlfile'
        if xmlfile_arg in test.keys():
            xml_path = os.path.join(script_dir, test[xmlfile_arg])
            test_arguments.append('--' + xmlfile_arg)
            test_arguments.append(xml_path)
        if test['kind'] == 'publisher':
            pub_args.append(test_arguments)
        elif test['kind'] == 'subscriber':
            sub_args.append(test_arguments)
        elif test['kind'] == 'pubsub':
            pubsub_args.append(test_arguments)
        else:
            print('ARGUMENT ERROR : '
                  '<kind> field can be publisher/subscriber/pubsub')
    return pub_args, sub_args, pubsub_args