code: def test_json_logging(monkeypatch):
      monkeypatch.setenv("DEV_LOGGING", "")
      with capture_logs() as cap_logs:
          logger = structlog.get_logger("testing")
          logger.info("It works", even_with="structured fields")
      d = cap_logs[0]
      assert d["even_with"] == "structured fields"
      assert d["event"] == "It works"
  
imports: import contextlib
  import os
  import structlog
  from structlog.testing import capture_logs
  from modelkit.utils.logging import ContextualizedLogging
label_desc: Use image node_id 1 for calling a global function with example usage: test_json_logging(monkeypatch) without return types