def create_run_script(template_path, template_dict):
  template = Template(open(template_path).read())
  content = template.safe_substitute(template_dict)
  return content
Generate the run script of given script template and variables dict.
dataset/ETHPy150Open XiaoMi/minos/client/deploy_utils.py/create_run_script