def METHOD_NAME(instance: Model, owners: list[int]) -> None:
    owner_objs = []
    user_id = get_user_id()
    if user_id and user_id not in owners:
        owners.append(user_id)
    for owner_id in owners:
        user = current_app.appbuilder.get_session.query(
            current_app.appbuilder.sm.user_model
        ).get(owner_id)
        owner_objs.append(user)
    instance.owners = owner_objs