code: def test_magic(notebook):
      with notebook("magic.ipynb") as nb:
          nb.execute_all()
          iframes = 0
          text = ""
          for c, cell in enumerate(nb.cells):
              for i, out in enumerate(cell["outputs"]):
                  print(f"CELL {c} output {i}: ", out)
                  if not out.get("data", {}).get("text/html"):
                      continue
                  if c == 0 and i == 0:
                      assert "display:none" in out
                  text += out["data"]["text/html"]
              iframes += 1
          assert notebook.base_url in text
          assert iframes == 6
  
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 3 for calling a global function with example usage: test_magic(notebook) without return types