code: def test_groundtruth_metrics():
      pred_mask = torch.rand(10)
      target_mask = torch.rand(10)
  
      (
          accuracy,
          recall,
          precision,
          f1_score,
          auroc,
      ) = groundtruth_metrics(pred_mask, target_mask)
  
      assert accuracy >= 0.0 and accuracy <= 1.0
      assert recall >= 0.0 and recall <= 1.0
      assert precision >= 0.0 and precision <= 1.0
      assert f1_score >= 0.0 and f1_score <= 1.0
      assert auroc >= 0.0 and auroc <= 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 1 for calling a global function with example usage: test_groundtruth_metrics() without return types