code: def validate_owner(value: int) -> None:
      try:
          (
              current_app.appbuilder.get_session.query(
                  current_app.appbuilder.sm.user_model.id
              )
              .filter_by(id=value)
              .one()
          )
      except NoResultFound as ex:
          raise ValidationError(f"User {value} does not exist") from ex
  
file_path: superset/superset/views/base_schemas.py
imports: from collections.abc import Iterable, Mapping, Sequence
  from typing import Any, Optional, Union
  from flask import current_app, g
  from flask_appbuilder import Model
  from marshmallow import post_load, pre_load, Schema, ValidationError
  from sqlalchemy.exc import NoResultFound
  from superset.utils.core import get_user_id
label_desc: Use image node_id 1 for calling a global function with example usage: validate_owner(value) without return types