code: def test_iter_returns_all_modules_when_drop_p_is_zero(self) -> None:
      modules = [
          Linear(10, 10),
          Linear(10, 10),
          Linear(10, 10),
          Linear(10, 10),
      ]
  
      m = ModuleList(modules)
  
      count = 0
  
      for m1, m2 in zip(m.drop_iter(), modules):
          assert m1 is m2
  
          count += 1
  
      assert count == len(modules)
  
imports: import pytest
  from torch.nn import Linear
  from fairseq2.nn import ModuleList
label_desc: Use image node_id 2 for calling the TestModuleList obj's underlying member method code with example usage: obj.test_iter_returns_all_modules_when_drop_p_is_zero() without return types