code: def test_pipeline_loads(test_files_path):
      with open(f"{test_files_path}/yaml/test_pipeline.yaml", "r") as f:
          pipeline = Pipeline.loads(f.read())
          assert pipeline.max_loops_allowed == 99
          assert isinstance(
              pipeline.get_component("Comp1"), TestComponent
          )
          assert isinstance(
              pipeline.get_component("Comp2"), TestComponent
          )
  
file_path: haystack/test/test_pipeline.py
imports: from typing import Optional
  import pytest
  from haystack import Pipeline, component
label_desc: Use image node_id 3 for calling a global function with example usage: test_pipeline_loads(test_files_path) without return types