code: def add_role(user, roles):
          
          def _add_role(role):
              user_role = UserRole()
              user_role.user_id = user.user_id
              user_role.role_id = role.role_id
              db.session.add(user_role)
              db.session.commit()
          [_add_role(role) for role in roles]
docs: Map roles for user in database
  
          Args:
              user (User): User to add roles to
              roles ([Role]): List of roles to add
  
          Returns:
              None