code: def extern_get_type_for(self, context_handle, val):
      
      c = self._ffi.from_handle(context_handle)
      obj = self._ffi.from_handle(val[0])
      type_id = c.to_id(type(obj))
      return TypeId(type_id)
docs: Return a representation of the object's type.