

def generate_value(self, context_params, value, parse_with_jinja=False):
    'Returns a copy of the input value.\n\n        If parse_with_jinja is True, strings within the input value are treated\n        as templates and parsed against context_params. The output will be a\n        unicode string.\n\n        If parse_with_jinja is False, the input value is copied and returned\n        without changing its type.\n        '
    if (context_params is None):
        context_params = {
            
        }
    if parse_with_jinja:
        return jinja_utils.evaluate_object(value, context_params)
    else:
        return copy.deepcopy(value)

dataset/ETHPy150Open oppia/oppia/extensions/value_generators/models/generators.py Copier.generate_value/original