def __repr__(self):
if not self._is_item:<EOL><INDENT>return [obj for obj in self[:<NUM_LIT:10>]].__repr__()<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>u = six.text_type(self)<EOL><DEDENT>except (UnicodeEncodeError, UnicodeDecodeError):<EOL><INDENT>u = '<STR_LIT>'<EOL><DEDENT>return six.text_type('<STR_LIT>' % (self.__class__.__name__, u))<EOL><DEDENT>
This works for two different object:
    - Main ListNode object
    - Items of the ListNode (like instance of a class)
      which created while iterating on main ListNode object

Returns:
    String representation of object.