code: def format_object_attrs(obj):
      
      attrs = []
      if hasattr(obj, 'dtype'):
          attrs.append(('dtype', "'{}'".format(obj.dtype)))
      if getattr(obj, 'name', None) is not None:
          attrs.append(('name', default_pprint(obj.name)))
      max_seq_items = get_option('display.max_seq_items') or len(obj)
      if len(obj) > max_seq_items:
          attrs.append(('length', len(obj)))
      return attrs
docs: 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