def generate(self, subscription=None, billing_date=None, customers=None,
                 force_generate=False):

        if not subscription:
            customers = customers or Customer.objects.all()
            self._generate_all(billing_date=billing_date,
                               customers=customers,
                               force_generate=force_generate)
        else:
            self._generate_for_single_subscription(subscription=subscription,
                                                   billing_date=billing_date)
The `public` method called when one wants to generate the billing
dataset/ETHPy150Open PressLabs/silver/silver/documents_generator.py/DocumentsGenerator.generate