docs: def get_truncated_repr(self, maxlen):
          '''
          Get a repr-like string for the data, but truncate it at "maxlen" bytes
          (ending the object graph traversal as soon as you do)
          '''
          out = TruncatedStringIO(maxlen)
          try:
              self.write_repr(out, set())
          except StringTruncated:
              # Truncation occurred:
              return out.getvalue() + '...(truncated)'
  
          # No truncation occurred:
          return out.getvalue()