code: def to_val(teleport_schema):
      
      translated = _translate(teleport_schema)
      if isinstance(translated, BaseSchema):
          return translated
  
      return Schema(translated)
docs: Convert a parsed teleport schema to a val schema.