code: def guard_prepublish(analysis_request):
      
      valid_states = ['verified', 'to_be_verified']
      for analysis in analysis_request.getAnalyses():
          analysis = api.get_object(analysis)
          if api.get_workflow_status_of(analysis) in valid_states:
              return True
      return False
docs: Returns whether 'prepublish' transition can be perform or not. Returns
      True if the analysis request has at least one analysis in 'verified' or in
      'to_be_verified' status. Otherwise, return False