code: def quarto(args, filein=None):
      """Execute quarto with the given arguments"""
      cmd = ["quarto"] + args.split()
  
      if filein:
          cmd.append(filein)
  
      proc = subprocess.Popen(
          cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE
      )
      out, err = proc.communicate()
      if proc.returncode:
          raise QuartoError(
              f"{' '.join(cmd)} exited with return code {proc.returncode}\n{err.decode('utf-8')}"
          )
  
      return out.decode("utf-8")
  
file_path: jupytext/src/jupytext/quarto.py
imports: import os
  import subprocess
  import tempfile
  from nbformat import reads
  from nbformat import writes
  from packaging.version import parse
label_desc: Use image node_id 1 for calling a global function with example usage: quarto(args, filein) and returns: out