def import_subscribers(self, list_id, subscribers, resubscribe, queue_subscription_based_autoresponders=False, restart_subscription_based_autoresponders=False):
        """Imports subscribers into a subscriber list."""
        body = {
            "Subscribers": subscribers,
            "Resubscribe": resubscribe,
            "QueueSubscriptionBasedAutoresponders": queue_subscription_based_autoresponders,
            "RestartSubscriptionBasedAutoresponders": restart_subscription_based_autoresponders}
        try:
            response = self._post("/subscribers/%s/import.json" %
                                  list_id, json.dumps(body))
        except BadRequest as br:
            # Subscriber import will throw BadRequest if some subscribers are not imported
            # successfully. If this occurs, we want to return the ResultData property of
            # the BadRequest exception (which is of the same "form" as the response we'd
            # receive upon a completely successful import)
            if hasattr(br.data, 'ResultData'):
                return br.data.ResultData
            else:
                raise br
        return json_to_py(response)
Imports subscribers into a subscriber list.