def correct_gear_box_torque_in(gear_box_torque_out, gear_box_torque_in,
    gear, gear_box_ratios):
    """
    Corrects the torque when the gear box ratio is equal to 1.

    :param gear_box_torque_out:
        Torque gear_box [N*m].
    :type gear_box_torque_out: float

    :param gear_box_torque_in:
        Torque required [N*m].
    :type gear_box_torque_in: float

    :param gear:
        Gear [-].
    :type gear: int

    :param gear_box_ratios:
        Gear box ratios [-].
    :type gear_box_ratios: dict[int | float]

    :return:
        Corrected torque required [N*m].
    :rtype: float
    """
    gbr = gear_box_ratios
    if gbr is None or gear is None:
        return gear_box_torque_in
    return gear_box_torque_out if gbr.get(gear, 0) == 1 else gear_box_torque_in
