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