from typing import OrderedDict


def object_attributes_to_ordered_dict(obj,  attributes):
    """Returns the specified attributes  from the object in an OrderedDict."""
    dict = OrderedDict()
    object_vars = vars(obj)
    for attribute in attributes:
        dict[attribute] = object_vars[attribute]
    return dict