def __init__(self, info_in, info_out):
<EOL>if info_in.origin_id != info_out.origin_id and info_in.id not in [<EOL>t.info_id<EOL>for t in info_out.origin.transmissions(<EOL>direction="<STR_LIT>", status="<STR_LIT>"<EOL>)<EOL>]:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>".format(<EOL>info_in, info_out<EOL>)<EOL>)<EOL><DEDENT>for i in [info_in, info_out]:<EOL><INDENT>if i.failed:<EOL><INDENT>raise ValueError("<STR_LIT>".format(i))<EOL><DEDENT><DEDENT>self.info_in = info_in<EOL>self.info_out = info_out<EOL>self.node = info_out.origin<EOL>self.network = info_out.network<EOL>self.info_in_id = info_in.id<EOL>self.info_out_id = info_out.id<EOL>self.node_id = info_out.origin_id<EOL>self.network_id = info_out.network_id<EOL>
Create a transformation.