def METHOD_NAME(assigned_attribute):
    value_instance = assigned_attribute.values.first()
    if not value_instance:
        return ""
    attribute = assigned_attribute.attribute
    if attribute.input_type == AttributeInputType.FILE:
        value = "http://mirumee.com/media/" + value_instance.file_url
    elif attribute.input_type == AttributeInputType.REFERENCE:
        ref_id = value_instance.slug.split("_")[1]
        value = f"{attribute.entity_type}_{ref_id}"
    elif attribute.input_type == AttributeInputType.NUMERIC:
        value = f"{value_instance.name}"
        if attribute.unit:
            value += f" {attribute.unit}"
    elif attribute.input_type == AttributeInputType.RICH_TEXT:
        value = clean_editor_js(value_instance.rich_text, to_string=True)
    elif attribute.input_type == AttributeInputType.SWATCH:
        value = (
            value_instance.file_url if value_instance.file_url else value_instance.value
        )
    elif attribute.input_type == AttributeInputType.BOOLEAN:
        value = str(value_instance.boolean)
    elif attribute.input_type == AttributeInputType.DATE:
        value = str(value_instance.date_time.date())
    elif attribute.input_type == AttributeInputType.DATE_TIME:
        value = str(value_instance.date_time)
    else:
        value = value_instance.name or value_instance.slug
    return value