code: def test_infinite_deadline():
      deadline = Deadline(None)
  
      assert deadline.expires_at is None
      assert deadline.expired is False
      assert deadline.expires is False
      assert deadline.expires_at is None
      assert deadline.remaining is None
  
      deadline2 = Deadline.after(None)
  
      assert deadline2.expires_at is None
  
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 2 for calling a global function with example usage: test_infinite_deadline() without return types