docstr: Writes the string representation of this pipeline to the file-like object
  passed in the `fp` argument.
  
  :params fp: A file-like object ready to be written to.
  :params marshaller: The Marshaller used to create the string representation. Defaults to
                      `YamlMarshaller`.
docstr_tok: ["Writes","the","string","representation","of","this","pipeline","to","the","file-like","object","passed","in","the","`","fp","`","argument",".",":","params","fp",":","A","file-like","object","ready","to","be","written","to",".",":","params","marshaller",":","The","Marshaller","used","to","create","the","string","representation",".","Defaults","to","`","YamlMarshaller","`","."]
code: def dump(
      self, fp: TextIO, marshaller: Marshaller = DEFAULT_MARSHALLER
  ):
      """
      Writes the string representation of this pipeline to the file-like object
      passed in the `fp` argument.
  
      :params fp: A file-like object ready to be written to.
      :params marshaller: The Marshaller used to create the string representation. Defaults to
                          `YamlMarshaller`.
      """
      fp.write(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 5 for calling the Pipeline obj's underlying member method code with example usage: obj.dump(fp, marshaller) without return types