docstr: Returns the string representation of this pipeline according to the
  format dictated by the `Marshaller` in use.
  
  :params marshaller: The Marshaller used to create the string representation. Defaults to
                      `YamlMarshaller`
  
  :returns: A string representing the pipeline.
docstr_tok: ["Returns","the","string","representation","of","this","pipeline","according","to","the","format","dictated","by","the","`","Marshaller","`","in","use",".",":","params","marshaller",":","The","Marshaller","used","to","create","the","string","representation",".","Defaults","to","`","YamlMarshaller","`",":","returns",":","A","string","representing","the","pipeline","."]
code: def dumps(self, marshaller: Marshaller = DEFAULT_MARSHALLER) -> str:
      """
      Returns the string representation of this pipeline according to the
      format dictated by the `Marshaller` in use.
  
      :params marshaller: The Marshaller used to create the string representation. Defaults to
                          `YamlMarshaller`
  
      :returns: A string representing the pipeline.
      """
      return marshaller.marshal(self.to_dict())
  
file_path: haystack/haystack/pipeline.py
imports: from collections import defaultdict
  from typing import Any, Dict, Optional, Union, TextIO, Tuple
  from pathlib import Path
  import datetime
  import logging
  from haystack.core.pipeline import Pipeline
  from haystack.telemetry import pipeline_running
  from haystack.marshal import Marshaller, YamlMarshaller
label_desc: Use image node_id 4 for calling the Pipeline obj's underlying member method code with example usage: obj.dumps(marshaller) and returns: marshaller