def _get_job_state(self, state):
        try:
            return {
                'E': job_states.RUNNING,
                'R': job_states.RUNNING,
                'Q': job_states.QUEUED,
                'C': job_states.OK
            }.get(state)
        except __HOLE__:
            raise KeyError("Failed to map torque status code [%s] to job state." % state)
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/managers/util/cli/job/torque.py/Torque._get_job_state