code: def is_transition_allowed(analyses, transition_id):
      
      if not analyses:
          return True
      if not isinstance(analyses, list):
          return is_transition_allowed([analyses], transition_id)
      for analysis in analyses:
          if not wf.isTransitionAllowed(analysis, transition_id):
              return False
      return True
docs: Returns whether all analyses can be transitioned or not