code: def test_context_manager(a_model_with_dropout, is_deterministic):
      with baal.bayesian.dropout.MCDropoutModule(
          a_model_with_dropout
      ) as model:
          assert not is_deterministic(model.eval(), (8, 10))
      assert is_deterministic(model.eval(), (8, 10))
  
file_path: baal/tests/bayesian/dropout_test.py
imports: import warnings
  import pytest
  import torch
  import baal.bayesian.dropout
label_desc: Use image node_id 7 for calling a global function with example usage: test_context_manager(a_model_with_dropout, is_deterministic) without return types