def _wrap_transformer(self, in_, out_, wrap_input=False, wrap_output=False):
    input = (in_._wrapped_view_type if wrap_input else in_._view_type)
    output = (out_._wrapped_view_type if wrap_output else out_._view_type)
    transformer = self._lookup_transformer(input, output)
    if (transformer is None):
        return None
    if wrap_input:
        transformer = in_._wrap_input(transformer)
    if wrap_output:
        transformer = out_._wrap_output(transformer)
    return transformer
def _wrap_transformer(self, in_, out_, wrap_input=False, wrap_output=False):
    input = (in_._wrapped_view_type if wrap_input else in_._view_type)
    output = (out_._wrapped_view_type if wrap_output else out_._view_type)
    transformer = self._lookup_transformer(input, output)
    if (transformer is None):
        return None
    if wrap_input:
        transformer = in_._wrap_input(transformer)
    if wrap_output:
        transformer = out_._wrap_output(transformer)
    return transformer