def row_format_resource(*fields):
    """Transform a variable number of fields to a `table-row` format.
        ```
            >>> row_format_resource(a,b,c,d)
            '| a | b | c | d |'
        ```
        :param fields: fields to be converted to row.
        """
    return ('| {} ' * len(fields)).format(*fields) + '|\n'