code: def test_perfect_groundtruth_metrics():
      pred_mask = target_mask = torch.rand(10)
  
      (
          accuracy,
          recall,
          precision,
          f1_score,
          auroc,
      ) = groundtruth_metrics(pred_mask, target_mask)
  
      assert round(accuracy, 6) == 1.0
      assert round(recall, 6) == 1.0
      assert round(precision, 6) == 1.0
      assert round(f1_score, 6) == 1.0
      assert round(auroc, 6) == 1.0
  
imports: import warnings
  import torch
  from torch_geometric.explain import groundtruth_metrics
  from torch_geometric.testing import withPackage
label_desc: Use image node_id 2 for calling a global function with example usage: test_perfect_groundtruth_metrics() without return types