code: def mock_no_sklearn():
      with patch.dict("sys.modules", {"sklearn.metrics": None}):
          yield sklearn
  
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 1 for calling a global function with example usage: mock_no_sklearn() without return types