class_docstr: Class representing a pipeline template.
class_docstr_tok: ["Class","representing","a","pipeline","template","."]
code: def open_w(self, file):
      if not self.steps:
          return open(file, "w")
      if self.steps[0][1] == SOURCE:
          raise ValueError(
              "Template.open_w: pipeline begins with SOURCE"
          )
      cmd = self.makepipeline("", file)
      return os.popen(cmd, "w")
  
file_path: catboost/contrib/tools/python3/src/Lib/pipes.py
imports: import re
  import os
  import tempfile
  import warnings
  from shlex import quote
label_desc: Use image node_id 10 for calling the Template obj's underlying member method code with example usage: obj.open_w(file) and returns: os, open