code: def _repr_pretty_(self, builder, cycle):
          
          builder.text(self.__class__.__name__ + "(")
          if cycle:
              builder.text("<cycle>")
          else:
              builder.pretty(self.__dict__)
          builder.text(")")
docs: Custom pretty output for the IPython console