docs: def cancel_spot_requests(self, requests):
          """Cancel one or more EC2 spot instance requests.
  
          :param requests: List of EC2 spot instance request IDs.
          :type requests: list
          """
          ec2_requests = self.retry_on_ec2_error(self.ec2.get_all_spot_instance_requests, request_ids=requests)
  
          for req in ec2_requests:
              req.cancel()