code: def test_get_last_logs_long_running_job():
      """Test calling get_last_logs() on long-running jobs.
  
      When the job is running longer than 4 hours, get_last_logs() should skip
      downloading the logs and return None.
      """
      anyscale_job_manager = AnyscaleJobManager(cluster_manager=None)
      anyscale_job_manager._duration = 4 * 3_600 + 1
      anyscale_job_manager._last_job_result = FakeJobResult(_id="foo")
      assert anyscale_job_manager.get_last_logs() is None
  
file_path: ray/release/ray_release/tests/test_anyscale_job_manager.py
imports: import pytest
  import sys
  import tempfile
  import os
  from ray_release.util import ERROR_LOG_PATTERNS
  from ray_release.job_manager.anyscale_job_manager import AnyscaleJobManager
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_last_logs_long_running_job() without return types