code: def test_timeout_sync(client):
      v = Variable("v")
      start = time()
      with pytest.raises(TimeoutError):
          v.get(timeout=0.2)
      stop = time()
  
      if WINDOWS:
          assert 0.1 < stop - start < 2.0
      else:
          assert 0.2 < stop - start < 2.0
  
      with pytest.raises(TimeoutError):
          v.get(timeout=0.01)
  
file_path: distributed/distributed/tests/test_variable.py
imports: from __future__ import annotations
  import asyncio
  import pickle
  import random
  from datetime import timedelta
  from time import sleep
  import pytest
  from distributed import Client, Nanny, TimeoutError, Variable, wait, worker_client
  from distributed.compatibility import WINDOWS
  from distributed.metrics import monotonic, time
  from distributed.utils import open_port
  from distributed.utils_test import captured_logger, div, gen_cluster, inc, popen
label_desc: Use image node_id 3 for calling a global function with example usage: test_timeout_sync(client) without return types