def get_attribute_element(attributes, element: str, enum):
    """
    Constructs an Emum object of a given attribute
    :rtype: FastEnum
    :type enum: FastEnum
    :type attributes: XML attributes
    :param attributes: XML attributes of a certain XML node
    :param elment: A String
    :param enum: The Enum object that should be initialized
    :return: The corresponding Enum object or None
    """
    if element in attributes:
        return enum[attributes[element]]
    return None