code: def debug_result(result, prefix=None):
      prefix = prefix or ""
      print("DEBUG({}) {} = {}".format(prefix, "out", result.output))
      print("DEBUG({}) {} = {}".format(prefix, "exc", result.exception))
      print(
          "DEBUG({}) {} = {}".format(
              prefix, "tb", traceback.print_tb(result.exc_info[2])
          )
      )
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_cli_full.py
imports: import netrc
  import os
  import traceback
  from unittest import mock
  import pytest
  import wandb
  from wandb.cli import cli
label_desc: Use image node_id 2 for calling a global function with example usage: debug_result(result, prefix) without return types