def discrete_actuator_force(action):
    """Convert the network action to a discrete force applied to the cart.

    Args:
        action ([float]): The action of the agent. Must be a scalar value in the
            range [-1, 1].

    Returns:
        float: A force of either 5 N (move cart right) or -5 N (move cart left)
            to be applied to the cart.
    """
    return 5.0 if action[0] > 0.0 else -10.0