def __repr__(self):
    repr_str = f'<{self.nodeType}'
    if hasattr(self, 'nodes'):
        repr_str += ' iterable'
    if hasattr(self, 'type'):
        if isinstance(self.type, str):
            repr_str += f' {self.type}'
        else:
            repr_str += f' {self.type._display()}'
    if self._display():
        repr_str += f" '{self._display()}'"
    else:
        repr_str += ' object'
    return f'{repr_str}>'
def __repr__(self):
    repr_str = f'<{self.nodeType}'
    if hasattr(self, 'nodes'):
        repr_str += ' iterable'
    if hasattr(self, 'type'):
        if isinstance(self.type, str):
            repr_str += f' {self.type}'
        else:
            repr_str += f' {self.type._display()}'
    if self._display():
        repr_str += f" '{self._display()}'"
    else:
        repr_str += ' object'
    return f'{repr_str}>'