code: def test_deadline_expiration():
      deadline = Deadline.after(0.1)
      sleep(0.15)
      assert deadline.expired is True
      assert deadline.remaining == 0
      assert deadline.elapsed >= deadline.duration
  
file_path: distributed/distributed/tests/test_deadline.py
imports: from __future__ import annotations
  import asyncio
  from time import sleep
  from distributed.metrics import time
  from distributed.utils import Deadline
  from distributed.utils_test import gen_test
label_desc: Use image node_id 3 for calling a global function with example usage: test_deadline_expiration() without return types