def METHOD_NAME(self):
    @component
    def comp(text: str) -> NamedTuple('outputs', [('data', List[str])]):
        outputs = NamedTuple('outputs', [('data', List[str])])
        return outputs(data={text: text})
    # TODO: ideally should be the canonical type string, rather than the specific annotation as string, but both work
    self.assertEqual(comp.component_spec.outputs['data'].type,
                     'typing.List[str]')