g>:<code>Callable</code>)</p>
</blockquote>
<p>Usually used as a decorator.</p>
<p>The input and output signature of decorated function should be:
func(params: m3tl.Params,
     mode: str) -&gt; Union[Generator[X, y], Tuple[List[X], List[y]]]</p>
<p>Where X can be:</p>
<ul>
<li>Dicitionary of 'a' and 'b' texts: {'a': 'a test', 'b': 'b test'}</li>
<li>Text: 'a test'</li>
<li>Dicitionary of modalities: {'text': 'a test', 'image': np.array([1,2,3])}</li>
</ul>
<p>Where y can be:</p>
<ul>
<li>Text or scalar: 'l