code: def is_analysis_attachment_allowed(self, analysis):
          
          if analysis.getAttachmentOption() not in ["p", "r"]:
              return False
          if api.get_workflow_status_of(analysis) in ["retracted"]:
              return False
          return True
docs: Checks if the analysis