code: def test_log(relay_server, wandb_init):
      """Make sure log is generating history with subsecond resolution."""
      with relay_server() as relay:
          before = time.time()
          run = wandb_init()
          run_id = run.id
          for i in range(10):
              run.log(dict(k=i))
              time.sleep(0.000010)  # 10 us
          run.finish()
          after = time.time()
  
      history = relay.context.get_run_history(
          run_id, include_private=True
      )
  
      assert history.shape[0] == 10
      assert any(history["_timestamp"] % 1 > 0)
      assert any(history["_runtime"] % 1 > 0)
      assert all(before <= history["_timestamp"]) and all(
          history["_timestamp"] <= after
      )
      assert all(0 <= history["_runtime"]) and all(
          history["_runtime"] <= after - before
      )
  
imports: import time
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_log(relay_server, wandb_init) without return types