code: def test_torch_AUC():
      from bigdl.orca.learn.pytorch.pytorch_metrics import AUROC
  
      pred = torch.tensor([0.3, 0.4, 0.2, 0.5, 0.6, 0.7, 0.8])
      target = torch.tensor([0, 1, 0, 1, 1, 1, 1.0])
      auc = AUROC()
      auc(pred, target)
      print(auc.compute())
      assert (auc.compute() - 1.0) < 1e-6
  
file_path: BigDL/python/orca/test/bigdl/orca/learn/test_metrics.py
imports: import torch
  import pytest
label_desc: Use image node_id 13 for calling a global function with example usage: test_torch_AUC() without return types