code: def solution_violations(solution, events, slots):
      
      array = converter.solution_to_array(solution, events, slots)
      return array_violations(array, events, slots)
docs: Take a solution and return a list of violated constraints
  
      Parameters
      ----------
          solution: list or tuple
              a schedule in solution form
          events : list or tuple
              of resources.Event instances
          slots : list or tuple
              of resources.Slot instances
  
      Returns
      -------
          Generator
              of a list of strings indicating the nature of the violated
              constraints