Translate a teleport value in to a val subschema.

def _translate(teleport_value):
    """Translate a teleport value in to a val subschema."""
    if isinstance(teleport_value, dict):
        return _translate_composite(teleport_value)

    if teleport_value in PRIMITIVES:
        return PRIMITIVES[teleport_value]

    raise DeserializationError(
        "Could not interpret %r as a teleport schema." % teleport_value)