code: def test_no_update():
      ap = AveragePrecision()
  
      with pytest.raises(
          NotComputableError,
          match=r"EpochMetric must have at least one example before it can be computed",
      ):
          ap.compute()
  
imports: import os
  from unittest.mock import patch
  import pytest
  import sklearn
  import torch
  from sklearn.metrics import average_precision_score
  import ignite.distributed
  from ignite.contrib.metrics import AveragePrecision
  from ignite.engine import Engine
  from ignite.exceptions import NotComputableError
label_desc: Use image node_id 3 for calling a global function with example usage: test_no_update() without return types