docs: def to_str(self, expandattrs=True, expandvals=True):
          """
          Convert the node into a string, intended for testing/debugging purposes
  
          :param expandattrs:
            print the values of the attributes if True, else print only the names
          :param expandvals:
            print the values if True, else print only the tag names
          """
          out = io.BytesIO()
          node_display(self, expandattrs, expandvals, out)
          return decode(out.getvalue())