code: def no_more_deployments_remain(self):
          '''
          Helper function to find whether there are deployments left with stages associated
          '''
          no_more_deployments = True
          deployments = __salt__['boto_apigateway.describe_api_deployments'](restApiId=self.restApiId,
                                                                             **self._common_aws_args).get('deployments')
          if deployments:
              for deployment in deployments:
                  deploymentId = deployment.get('id')
                  stages = __salt__['boto_apigateway.describe_api_stages'](restApiId=self.restApiId,
                                                                           deploymentId=deploymentId,
                                                                           **self._common_aws_args).get('stages')
                  if stages:
                      no_more_deployments = False
                      break
  
          return no_more_deploymentf no_more_deployments_remain(self):
          '''
          Helper function to find whether there are deployments left with stages associated
          '''
          no_more_deployments = True
          deployments = __salt__['boto_apigateway.describe_api_deployments'](restApiId=self.restApiId,
                                                                             **self._common_aws_args).get('deployments')
          if deployments:
              for deployment in deployments:
                  deploymentId = deployment.get('id')
                  stages = __salt__['boto_apigateway.describe_api_stages'](restApiId=self.restApiId,
                                                                           deploymentId=deploymentId,
                                                                           **self._common_aws_args).get('stages')
                  if stages:
                      no_more_deployments = False
                      break
  
          return no_more_deployments
docs: Helper function to find whether there are deployments left with stages associated