def METHOD_NAME(result):
    """Custom formatting of table output for a hydrated resource"""
    is_list = isinstance(result, list)
    if not is_list:
        result = [result]
    final_result = []
    for item in result:
        new_item = OrderedDict()
        new_item["Name"] = item["name"]
        new_item["ResourceGroup"] = item["resourceGroup"]
        if item.get("detailedStatus"):
            new_item["DetailedStatus"] = item["detailedStatus"]
        else:
            new_item["DetailedStatus"] = ""
        if item.get("detailedStatusMessage"):
            new_item["DetailedStatusMessage"] = item["detailedStatusMessage"]
        else:
            new_item["DetailedStatusMessage"] = ""
        final_result.append(new_item)
    return final_result if is_list else final_result[0]