def create_flavor(self, name, ram, vcpus, disk, flavorid="auto",
                      ephemeral=0, swap=0, rxtx_factor=1.0, is_public=True):
        with _utils.shade_exceptions("Failed to create flavor {name}".format(
                name=name)):
            flavor = self.manager.submitTask(
                _tasks.FlavorCreate(name=name, ram=ram, vcpus=vcpus, disk=disk,
                                    flavorid=flavorid, ephemeral=ephemeral,
                                    swap=swap, rxtx_factor=rxtx_factor,
                                    is_public=is_public)
            )

        return _utils.normalize_flavors([flavor])[0]
Function to write the basic question details to a rtf document.
dataset/ETHPy150Open openstack-infra/shade/shade/operatorcloud.py/OperatorCloud.create_flavor--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3QuestionTypeOptionWidget.writeQuestionToRTF