@classmethod<EOL><INDENT>def tabulate(cls, data, fields, headers={}):<DEDENT>
if isinstance(data, str):<EOL><INDENT>print(tabulate([[data]], tablefmt=Printer.TABULATE_FORMAT))<EOL><DEDENT>elif isinstance(data, dict):<EOL><INDENT>print(tabulate([data], headers=headers, tablefmt=Printer.TABULATE_FORMAT))<EOL><DEDENT>elif isinstance(data, list):<EOL><INDENT>results = []<EOL>for obj in data:<EOL><INDENT>if isinstance(obj, NURESTObject):<EOL><INDENT>results.append(cls._object_to_dict(obj, fields))<EOL><DEDENT>else:<EOL><INDENT>results.append([obj])<EOL><DEDENT><DEDENT>print(tabulate(results, headers=headers, tablefmt=Printer.TABULATE_FORMAT))<EOL><DEDENT>else:<EOL><INDENT>dictionary = cls._object_to_dict(data, fields)<EOL>result = [(key, value) for key, value in dictionary.items()]<EOL>print(tabulate(result, headers=headers, tablefmt=Printer.TABULATE_FORMAT))<EOL><DEDENT>
Prints a tabulate version of data

            Args:
                data: something to disply