def create_subnet(self, context, label, project_id,
                      quantum_net_id, priority, cidr=None,
                      gateway_v6=None, cidr_v6=None,
                      dns1=None, dns2=None):
        tenant_id = project_id or FLAGS.quantum_default_tenant_id
        if cidr:
            self.m_conn.create_block(quantum_net_id, cidr,
                                     project_id=tenant_id,
                                     dns1=dns1, dns2=dns2)
        if cidr_v6:
            self.m_conn.create_block(quantum_net_id, cidr_v6,
                                     project_id=tenant_id,
                                     dns1=dns1, dns2=dns2)

        net = {"uuid": quantum_net_id,
               "project_id": project_id,
               "priority": priority,
               "label": label}
        admin_context = context.elevated()
        network = db.network_create_safe(admin_context, net)
Parse bAbI data into stories, queries, and answers.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/quantum/melange_ipam_lib.py/QuantumMelangeIPAMLib.create_subnet--crossover with--dataset/ETHPy150Open NervanaSystems/neon/neon/data/questionanswer.py/BABI.parse_babi