def get_attribute_value(tag_name, attrib_name):
    """ Retrieves the attribute value for the specified node name or tag name

    :Arguments:

    1. attrib_name (str) = Name of the attribute whose value has to be
    retrieved
    2. tag_name (str) = Name of the tag or node which has thee aforementioned
    attrib_name as an attribute

    :Returns:

    value (str) = value of the attribute

    """
    if attrib_name in tag_name.attrib:
        value = tag_name.attrib[attrib_name]
    else:
        value = ""
    return value