code: def test_respects_timeout(self):
      clock = MockClock()
      q = MockRequestQueue(clock, [(123, RequestFinish())])
      with pytest.raises(queue.Empty):
          q.get(timeout=8)
      assert clock() == 8
      assert q.get() == RequestFinish()
      assert clock() == 123
  
imports: import asyncio
  import concurrent.futures
  import dataclasses
  import queue
  import threading
  from typing import TYPE_CHECKING, Iterable, Mapping, Tuple
  from unittest.mock import Mock, call
  import pytest
  from wandb.filesync.step_prepare import Request, RequestFinish, RequestPrepare, ResponsePrepare, StepPrepare, gather_batch
label_desc: Use image node_id 5 for calling the TestMockRequestQueue obj's underlying member method code with example usage: obj.test_respects_timeout() without return types