code: def guard_deactivate(analysis_service):
      
      for dependant in analysis_service.getServiceDependants():
          status = api.get_workflow_status_of(dependant)
          if status == "active":
              return False
  
      return True
docs: Returns whether the transition deactivate can be performed for the
      analysis service passed in