code: def test_compute_losses(art_warning, get_pytorch_yolo):
      try:
          object_detector, x_test, y_test = get_pytorch_yolo
          losses = object_detector.compute_losses(x=x_test, y=y_test)
          assert len(losses) == 1
  
      except ARTTestException as e:
          art_warning(e)
  
file_path: adversarial-robustness-toolbox/tests/estimators/object_detection/test_pytorch_yolo.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import numpy
  import pytest
  from tests.utils import ARTTestException
label_desc: Use image node_id 6 for calling a global function with example usage: test_compute_losses(art_warning, get_pytorch_yolo) without return types