def set_writer(self, writer_name):
        writer_class = writers.get_writer_class(writer_name)
        self.writer = writer_class()
Test a network profile create with invalid segment type.
dataset/ETHPy150Open adieu/allbuttonspressed/docutils/core.py/Publisher.set_writer--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/n1kv/test_network_profile_service.py/TestN1KVMechDriverNetworkProfiles.test_create_network_profile_invalid_segment_type