original_docstring: 
          Checks, if a Tutor-Role is assigned to a specific user
          
docstring: Checks, if a Tutor-Role is assigned to a specific user
docstring_tokens: Checks if a Tutor - Role is assigned to a specific user
code: def is_tutor_by_userid(user_id) -> bool:
          """
          Checks, if a Tutor-Role is assigned to a specific user
          """
          return len(User.query.filter_by(id=user_id).filter(User.roles.any(id=app.config['USERROLE_TUTOR'])).all()) > 0
code_tokens: def is_tutor_by_userid ( user_id ) -> bool : return len ( User . query . filter_by ( id = user_id ) . filter ( User . roles . any ( id = app . config [ 'USERROLE_TUTOR' ] ) ) . all ( ) ) > 0
short_docstring: Checks, if a Tutor-Role is assigned to a specific user
short_docstring_tokens: Checks if a Tutor - Role is assigned to a specific user
comment: """
          Checks, if a Tutor-Role is assigned to a specific user
          """