code: def test_run_history_system(
      inject_run,
      inject_history,
      relay_server,
  ):
      events = [{"cpu": i * 10} for i in range(3)]
      inject_response = [inject_run(), inject_history(events=events)]
      with relay_server(inject=inject_response):
          run = Api().run("test/test/test")
          assert run.history(stream="system", pandas=False) == events
  
imports: import json
  from typing import Dict, List, Optional
  from unittest import mock
  import pytest
  import requests
  import wandb
  import wandb.apis.public
  import wandb.util
  from wandb import Api
  from wandb.old.summary import Summary
  from wandb.sdk.lib import runid
label_desc: Use image node_id 14 for calling a global function with example usage: test_run_history_system(inject_run, inject_history, relay_server) without return types