code: def test_mocked_notebook_html_default(
      wandb_init, run_id, mocked_ipython
  ):
      wandb.load_ipython_extension(mocked_ipython)
      mocked_ipython.register_magics.assert_called_with(
          wandb.jupyter.WandBMagics
      )
      with wandb_init(id=run_id) as run:
          run.log({"acc": 99, "loss": 0})
          run.finish()
      displayed_html = [
          args[0].strip()
          for args, _ in mocked_ipython.html.call_args_list
      ]
      for i, html in enumerate(displayed_html):
          print(f"[{i}]: {html}")
      assert len(displayed_html) == 8
      assert run_id in displayed_html[2]
      assert "Run history:" in displayed_html[5]
  
imports: import json
  import os
  import pathlib
  import platform
  import subprocess
  import sys
  from unittest import mock
  import pytest
  import wandb
  import wandb.jupyter
  import wandb.sdk.lib.apikey
  import wandb.util
label_desc: Use image node_id 11 for calling a global function with example usage: test_mocked_notebook_html_default(wandb_init, run_id, mocked_ipython) without return types