def format_object_attrs(obj):
attrs = []<EOL>if hasattr(obj, '<STR_LIT>'):<EOL><INDENT>attrs.append(('<STR_LIT>', "<STR_LIT>".format(obj.dtype)))<EOL><DEDENT>if getattr(obj, '<STR_LIT:name>', None) is not None:<EOL><INDENT>attrs.append(('<STR_LIT:name>', default_pprint(obj.name)))<EOL><DEDENT>max_seq_items = get_option('<STR_LIT>') or len(obj)<EOL>if len(obj) > max_seq_items:<EOL><INDENT>attrs.append(('<STR_LIT>', len(obj)))<EOL><DEDENT>return attrs<EOL>
Return a list of tuples of the (attr, formatted_value)
for common attrs, including dtype, name, length

Parameters
----------
obj : object
    must be iterable

Returns
-------
list