code: def stop(self, instances, count=0):
          
          if not instances:
              return
          if count > 0:
              instances = self._scale_down(instances, count)
          self.ec2.stop_instances([i.id for i in instances])
docs: Stop each provided running instance.
  
          :param count:
          :param instances: A list of instances.
          :type instances: list