def pid_invoked_with_cmdline(pid, expected_cmd):
 cmd = get_cmdline_from_pid(pid)
 return cmd_matches_expected(cmd, expected_cmd)

def pid_invoked_with_cmdline ( pid , expected_cmd ) : cmd = get_cmdline_from_pid ( pid ) return cmd_matches_expected ( cmd , expected_cmd )
validate process with given pid is running with provided parameters .