code: def _tobytes(self, skipprepack = False):
          '''
          Convert the struct to bytes. This is the standard way to convert a NamedStruct to bytes.
          
          :param skipprepack: if True, the prepack stage is skipped. For parser internal use.
          
          :returns: converted bytes
          '''
          stream = BytesIO()
          self._tostream(stream, skipprepack)
          return stream.getvalue(f _tobytes(self, skipprepack = False):
          '''
          Convert the struct to bytes. This is the standard way to convert a NamedStruct to bytes.
          
          :param skipprepack: if True, the prepack stage is skipped. For parser internal use.
          
          :returns: converted bytes
          '''
          stream = BytesIO()
          self._tostream(stream, skipprepack)
          return stream.getvalue()
docs: Convert the struct to bytes. This is the standard way to convert a NamedStruct to bytes.
          
          :param skipprepack: if True, the prepack stage is skipped. For parser internal use.
          
          :returns: converted bytes