code: def test_no_update():
      precision = Precision()
      assert precision._updated is False
      with pytest.raises(
          NotComputableError,
          match=r"Precision must have at least one example before it can be computed",
      ):
          precision.compute()
      assert precision._updated is False
  
imports: import warnings
  import pytest
  import torch
  from sklearn.exceptions import UndefinedMetricWarning
  from sklearn.metrics import precision_score
  import ignite.distributed
  from ignite.exceptions import NotComputableError
  from ignite.metrics import Precision
label_desc: Use image node_id 1 for calling a global function with example usage: test_no_update() without return types