code: def test_run_publish_history(mock_run, parse_records, record_q):
      run = mock_run()
      run.log(dict(this=1))
      run.log(dict(that=2))
  
      parsed = parse_records(record_q)
  
      assert len(parsed.records) == 2
      assert len(parsed.summary) == 0
  
      history = parsed.history or parsed.partial_history
      assert len(history) == 2
      assert history[0]["this"] == "1"
      assert history[1]["that"] == "2"
  
imports: import copy
  import os
  import platform
  import unittest.mock
  import numpy
  import pytest
  import wandb
  import wandb.errors
  from wandb import wandb_sdk
label_desc: Use image node_id 7 for calling a global function with example usage: test_run_publish_history(mock_run, parse_records, record_q) without return types