code: def create_summary_and_mock(
      current_dict: Dict,
  ) -> Tuple["wandb_sdk.Summary", "MockCallback"]:
      m = MockCallback(current_dict)
      s = wandb_sdk.Summary(
          m.get_current_summary_callback,
      )
      s._set_update_callback(
          m.update_callback,
      )
  
      return s, m
  
file_path: wandb/tests/pytest_tests/unit_tests/test_wandb_summary.py
imports: from typing import TYPE_CHECKING, Any, Dict, Tuple
  from wandb import wandb_sdk
label_desc: Use image node_id 1 for calling a global function with example usage: create_summary_and_mock(current_dict) and returns: s,  m