code: def test_log_step_committed_same(relay_server, wandb_init):
      with relay_server() as relay:
          run = wandb_init()
          run.log(dict(cool=2), step=1)
          run.log(dict(cool=2), step=4)
          run.log(dict(bad=3), step=4, commit=True)
          run.finish()
  
      history = relay.context.get_run_history(run.id)
      assert len(history) == 2
      assert history.cool[1] == 2
      assert history.bad[1] == 3
      assert len(history.columns) == 2
  
imports: import glob
  import inspect
  import io
  import os
  import tempfile
  import unittest.mock
  from contextlib import contextmanager
  from pathlib import Path
  from unittest import mock
  import pytest
  import wandb
  from wandb.sdk.lib import filesystem
  from wandb.sdk.wandb_init import init
  from wandb.viz import custom_chart
label_desc: Use image node_id 39 for calling a global function with example usage: test_log_step_committed_same(relay_server, wandb_init) without return types