code: def test_torch_ROC():
      from bigdl.orca.learn.pytorch.pytorch_metrics import ROC
  
      pred = torch.tensor([0.3, 0.6, 0.7, 0.8])
      target = torch.tensor([0, 1, 1, 1.0])
      auc = ROC()
      auc(pred, target)
      x, y, z = auc.compute()
      assert x[4] == 1.0
      assert y[4] == 1.0
      assert z[4] - 0.3 < 10e-6
  
file_path: BigDL/python/orca/test/bigdl/orca/learn/test_metrics.py
imports: import torch
  import pytest
label_desc: Use image node_id 14 for calling a global function with example usage: test_torch_ROC() without return types