async def METHOD_NAME(
    modules_legacy_python_protocol_file: Path,
) -> None:
    """It should map legacy module commands."""
    protocol_reader = ProtocolReader()
    protocol_source = await protocol_reader.read_saved(
        files=[modules_legacy_python_protocol_file],
        directory=None,
    )
    subject = await create_simulating_runner(
        robot_type="OT-2 Standard",
        protocol_config=protocol_source.config,
    )
    result = await subject.run(protocol_source)
    commands_result = result.commands
    assert len(commands_result) == 6
    temp_module_result_captor = matchers.Captor()
    mag_module_result_captor = matchers.Captor()
    thermocycler_result_captor = matchers.Captor()
    heater_shaker_result_captor = matchers.Captor()
    assert commands_result[0] == commands.Home.construct(
        id=matchers.IsA(str),
        key=matchers.IsA(str),
        status=commands.CommandStatus.SUCCEEDED,
        createdAt=matchers.IsA(datetime),
        startedAt=matchers.IsA(datetime),
        completedAt=matchers.IsA(datetime),
        params=commands.HomeParams(axes=None),
        result=commands.HomeResult(),
    )
    assert commands_result[1] == commands.LoadLabware.construct(
        id=matchers.IsA(str),
        key=matchers.IsA(str),
        status=commands.CommandStatus.SUCCEEDED,
        createdAt=matchers.IsA(datetime),
        startedAt=matchers.IsA(datetime),
        completedAt=matchers.IsA(datetime),
        params=matchers.Anything(),
        result=matchers.Anything(),
    )
    assert commands_result[2] == commands.LoadModule.construct(
        id=matchers.IsA(str),
        key=matchers.IsA(str),
        status=commands.CommandStatus.SUCCEEDED,
        createdAt=matchers.IsA(datetime),
        startedAt=matchers.IsA(datetime),
        completedAt=matchers.IsA(datetime),
        params=matchers.Anything(),
        result=temp_module_result_captor,
    )
    assert commands_result[3] == commands.LoadModule.construct(
        id=matchers.IsA(str),
        key=matchers.IsA(str),
        status=commands.CommandStatus.SUCCEEDED,
        createdAt=matchers.IsA(datetime),
        startedAt=matchers.IsA(datetime),
        completedAt=matchers.IsA(datetime),
        params=matchers.Anything(),
        result=mag_module_result_captor,
    )
    assert commands_result[4] == commands.LoadModule.construct(
        id=matchers.IsA(str),
        key=matchers.IsA(str),
        status=commands.CommandStatus.SUCCEEDED,
        createdAt=matchers.IsA(datetime),
        startedAt=matchers.IsA(datetime),
        completedAt=matchers.IsA(datetime),
        params=matchers.Anything(),
        result=thermocycler_result_captor,
    )
    assert commands_result[5] == commands.LoadModule.construct(
        id=matchers.IsA(str),
        key=matchers.IsA(str),
        status=commands.CommandStatus.SUCCEEDED,
        createdAt=matchers.IsA(datetime),
        startedAt=matchers.IsA(datetime),
        completedAt=matchers.IsA(datetime),
        params=matchers.Anything(),
        result=heater_shaker_result_captor,
    )
    assert temp_module_result_captor.value["model"] == ModuleModel.TEMPERATURE_MODULE_V1
    assert mag_module_result_captor.value["model"] == ModuleModel.MAGNETIC_MODULE_V1
    assert (
        thermocycler_result_captor.value["model"] == ModuleModel.THERMOCYCLER_MODULE_V1
    )
    assert (
        heater_shaker_result_captor.value["model"]
        == ModuleModel.HEATER_SHAKER_MODULE_V1
    )