def __retrieve_light_instance(self,
                                  name=DEFAULT_NODE_NAME,
                                  light_instance=DEFAULT_INSTANCE_NAME):
        assert isinstance(name, NodeName)
        node = self.__retrieve_node(name)
        if 'lightinstances' in node:
            light_instances = node['lightinstances']
            if light_instance in light_instances:
                instance = light_instances[light_instance]
            else:
                instance = { }
                light_instances[light_instance] = instance
        else:
            light_instances = { }
            node['lightinstances'] = light_instances
            instance = { }
            light_instances[light_instance] = instance
        return instance

#######################################################################################################################
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py/JsonAsset.__retrieve_light_instance/original