docstr: Creates a `Pipeline` object from the string representation passed in the `data` argument.
  
  :params data: The string representation of the pipeline, can be `str`, `bytes` or `bytearray`.
  :params marshaller: the Marshaller used to create the string representation. Defaults to
                      `YamlMarshaller`
  
  :returns: A `Pipeline` object.
docstr_tok: ["Creates","a","`","Pipeline","`","object","from","the","string","representation","passed","in","the","`","data","`","argument",".",":","params","data",":","The","string","representation","of","the","pipeline",",","can","be","`","str","`",",","`","bytes","`","or","`","bytearray","`",".",":","params","marshaller",":","the","Marshaller","used","to","create","the","string","representation",".","Defaults","to","`","YamlMarshaller","`",":","returns",":","A","`","Pipeline","`","object","."]
code: def loads(
      cls,
      data: Union[str, bytes, bytearray],
      marshaller: Marshaller = DEFAULT_MARSHALLER,
  ) -> "Pipeline":
      """
      Creates a `Pipeline` object from the string representation passed in the `data` argument.
  
      :params data: The string representation of the pipeline, can be `str`, `bytes` or `bytearray`.
      :params marshaller: the Marshaller used to create the string representation. Defaults to
                          `YamlMarshaller`
  
      :returns: A `Pipeline` object.
      """
      return cls.from_dict(marshaller.unmarshal(data))
  
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 6 for calling the Pipeline obj's underlying member method code with example usage: obj.loads(cls, data, marshaller) and returns: cls