<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def query_configuration(parser_args):
 """ Queries process state """

    from synergy.system import process_helper
    from synergy.conf import context

    process_names = [parser_args.process_name] if parser_args.process_name else list(context.process_context)
    for process_name in process_names:
        process_helper.poll_process(process_name)
    sys.stdout.write('\n')