code: def process_user(ctx, param, value):
      
      if value:
          if value.isdigit():
              user = User.query.get(str(value))
          else:
              user = User.query.filter(User.email == value).one_or_none()
          return user
docs: Return a user if exists.