def METHOD_NAME(workspace, tf_script, tf_args, tf_envs, set_jemalloc_version_cmd):
  cmd_str = "cd " + workspace + ";"
  if set_jemalloc_version_cmd:
    cmd_str += set_jemalloc_version_cmd 
    cmd_str += "LD_PRELOAD=${JEMALLOC_VERSION} " 
  cmd_str += " ".join(tf_envs) + " $(which python) -u "
  cmd_str += tf_script + " " + " ".join(tf_args)
  print("run tensorflow command:", cmd_str)
  return sp.call(cmd_str, shell=True)