def replicate_vars(self, output_vars):
        # Problem in Blocks with multiple monitors monitoring the
        # same value in a graph. Therefore, they are all "replicated" to a new
        # Theano variable
        if isinstance(output_vars, (list, tuple)):
            return map(self.replicate_vars, output_vars)
        assert not hasattr(output_vars.tag, 'aggregation_scheme'), \
            'The variable %s already has an aggregator ' % output_vars.name + \
            'assigned to it - are you using a datasetmonitor with the same' + \
            ' variable as output? This might cause trouble in Blocks'
        new_var = 1 * output_vars
        new_var.name = output_vars.name
        return new_var
dataset/ETHPy150Open CuriousAI/ladder/nn.py/TestMonitoring.replicate_vars/original