code: def _mask_tests(i, l):
      l.train()
      l.eval()
      assert l._mask is None
      o1 = l(i)
      mask = deepcopy(l._mask)
  
      l.train()
      l.eval()
      assert l._mask is None
      o2 = l(i)
      mask2 = deepcopy(l._mask)
  
      assert not torch.eq(mask, mask2).all()
      assert not torch.eq(o1, o2).all()
  
file_path: baal/tests/bayesian/consistent_dropout_test.py
imports: import warnings
  from copy import deepcopy
  import pytest
  import torch
  import baal.bayesian.consistent_dropout
label_desc: Use image node_id 10 for calling a global function with example usage: _mask_tests(i, l) without return types