def _get_transformer_to(self, other):
    transformer = self._wrap_transformer(self, other)
    if (transformer is not None):
        return transformer
    transformer = self._wrap_transformer(self, other, wrap_input=True)
    if (transformer is not None):
        return transformer
    if (type(other) is type(self)):
        transformer = self._wrap_transformer(self, other, wrap_input=True, wrap_output=True)
        if (transformer is not None):
            return transformer
    return other._get_transformer_from(self)
def _get_transformer_to(self, other):
    transformer = self._wrap_transformer(self, other)
    if (transformer is not None):
        return transformer
    transformer = self._wrap_transformer(self, other, wrap_input=True)
    if (transformer is not None):
        return transformer
    if (type(other) is type(self)):
        transformer = self._wrap_transformer(self, other, wrap_input=True, wrap_output=True)
        if (transformer is not None):
            return transformer
    return other._get_transformer_from(self)