code: def mock_get_link_content(test_files_path):
      with patch(
          "haystack.components.fetchers.link_content.requests"
      ) as mock_run:
          mock_run.get.return_value = Mock(
              status_code=200,
              content=open(
                  test_files_path / "pdf" / "sample_pdf_1.pdf", "rb"
              ).read(),
              headers={"Content-Type": "application/pdf"},
          )
          yield mock_run
  
file_path: haystack/test/components/fetchers/test_link_content_fetcher.py
imports: from unittest.mock import patch, Mock
  import pytest
  import requests
  from haystack.components.fetchers.link_content import LinkContentFetcher, text_content_handler, binary_content_handler, DEFAULT_USER_AGENT
label_desc: Use image node_id 2 for calling a global function with example usage: mock_get_link_content(test_files_path) without return types