def __init__(self, componentId, streamId):
if not isinstance(componentId, (str, HeronComponentSpec)):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not isinstance(streamId, str):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>self._component_id = componentId<EOL>self.stream_id = streamId<EOL>
:type componentId: str or HeronComponentSpec
:param componentId: component id from which the tuple is emitted, or HeronComponentSpec object.
:type streamId: str
:param streamId: stream id through which the tuple is transmitted