Adding a function check_power_state
Signed-off-by: Ravi Pandey <ravi.pandey@citrix.com>