def escape_quotes(text):
    return re.sub(r'\\("|\')', r'\\\\\1', text).replace('\'', '\\\'').replace('\"', '\\\"')
Gets the most recent image from the camera marked as `guide`
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/escape_quotes--crossover with--dataset/ETHPy150Open panoptes/POCS/panoptes/scheduler/observation.py/Observation.Exposure.get_guide_image_info