def escape_double_quotes(text):
    return re.sub(r'\\("|\')', r'\\\\\1', text).replace('\"', '\\\"')
Perform sampling of the operation.
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/escape_double_quotes--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/benchmark/_driver.py/sample