code: def test_load_module_state_dict():
      """Test that `Strategy.load_module_state_dict()` calls `.load_state_dict()` on the module."""
      strategy = (
          SingleDeviceStrategy()
      )  # surrogate class to test implementation in base class
      module = Mock()
      state_dict = Mock()
      strategy.load_module_state_dict(module, state_dict)
      module.load_state_dict.assert_called_with(state_dict, strict=True)
      strategy.load_module_state_dict(module, state_dict, strict=False)
      module.load_state_dict.assert_called_with(
          state_dict, strict=False
      )
  
imports: from unittest import mock
  from unittest.mock import Mock, PropertyMock
  import pytest
  import torch
  from lightning.fabric.plugins import DoublePrecision, HalfPrecision, Precision
  from lightning.fabric.strategies import SingleDeviceStrategy
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_0
  from lightning.fabric.utilities.types import _Stateful
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 5 for calling a global function with example usage: test_load_module_state_dict() without return types