code: def test_dropout_update(net):
      """Test dropout `.training` is updated by `.train()` and `.eval()` on parent `nn.module`"""
      net.train()
      assert net._dropout.training == True
      net.eval()
      assert net._dropout.training == False
      net.train()
      assert net._dropout.training == True
      net.eval()
      assert net._dropout.training == False
  
file_path: EfficientNet-PyTorch/tests/test_model.py
imports: from collections import OrderedDict
  import pytest
  import torch
  import torch.nn
  from efficientnet_pytorch import EfficientNet
label_desc: Use image node_id 7 for calling a global function with example usage: test_dropout_update(net) without return types