code: def test_timeout_sync(client):
      with Lock("x") as lock:
          assert Lock("x").acquire(timeout=0.1) is False
  
file_path: distributed/distributed/tests/test_locks.py
imports: from __future__ import annotations
  import pickle
  from datetime import timedelta
  from time import sleep
  import pytest
  from distributed import Lock, get_client
  from distributed.metrics import time
  from distributed.utils_test import gen_cluster
label_desc: Use image node_id 1 for calling a global function with example usage: test_timeout_sync(client) without return types