code: def __init__(self, script_path, op_name):
      assert script_path[-4:].lower() == ".qmd", script_path
      assert script_path.endswith(op_name), (script_path, op_name)
      self.script_path = script_path
      if os.path.isabs(op_name) or op_name.startswith(".."):
          self.op_name = os.path.basename(op_name)
      else:
          self.op_name = op_name
      script_base = script_path[: -len(self.op_name)]
      self.reference = modellib.script_model_ref(self.name, script_base)
      self.modeldef = self._init_modeldef()
      _apply_config_flags(self.modeldef, self.op_name)
  
file_path: guildai/guild/plugins/quarto_document.py
imports: import logging
  import os
  import yaml
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import plugin
label_desc: Use image node_id 1 to create a new QuartoDocumentModelProxy object  with example: obj = QuartoDocumentModelProxy(script_path, op_name)