<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def as_bin(self, *args, **kwargs):
 """Returns a binary blob containing the streamed transaction. For information about the parameters, see :func:`Tx.stream <stream>` :return: binary blob that would parse to the given transaction """

        f = io.BytesIO()
        self.stream(f, *args, **kwargs)
        return f.getvalue()