code: def sanitize_load(s):
      # do not let yaml parse ON/OFF to boolean
      for w in ["ON", "OFF", "on", "off"]:
          s = re.sub(r":\s+" + w + "$", r": '" + w + "'", s)
  
      # sub ${} to env value
      s = re.sub(r"\${(\w+)}", lambda x: os.environ[x.group(1)], s)
      return yaml.load(s)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import re
  import os
  import copy
  import yaml
  from enum import Enum
  from utils import util
  from utils.util import mace_check
  from utils.util import MaceLogger
  from py_proto import mace_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: sanitize_load(s) and returns: yaml