'Creates example data for a test'

def _create_example(self):

    source = np.random.randn(self.batch_size, self.sequence_length, self.input_depth)
    source_len = np.random.randint(0, self.sequence_length, [self.batch_size])
    target_len = np.random.randint(0, (self.sequence_length * 2), [self.batch_size])
    target = np.random.randn(self.batch_size, np.max(target_len), self.input_depth)
    labels = np.random.randint(0, self.vocab_size, [self.batch_size, (np.max(target_len) - 1)])
    example_ = namedtuple(u'Example', [u'source', u'source_len', u'target', u'target_len', u'labels'])
    return example_(source, source_len, target, target_len, labels)
