<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def translated(self, value, type):
 """ translate using the schema type """

        if value is not None:
            resolved = type.resolve()
            return resolved.translate(value)
        else:
            return value