def get_product_by_id(handler_input, product_id):
    """
    Returns product dict associated with product ID.
    Products have already been loaded into the session object.
    Args:
        handler_input: As passed into the Alexa skill Lambda handler.
        product_id: As converted from user input.

    Returns:
        dict: With product 'id', 'name' and 'price'.
    """
    session_attr = handler_input.attributes_manager.session_attributes
    return session_attr['Products'][product_id]