def __retrieve_shape_instance(self,
                                  name=DEFAULT_NODE_NAME,
                                  shape_instance=DEFAULT_INSTANCE_NAME):
        assert isinstance(name, NodeName)
        node = self.__retrieve_node(name)
        if 'geometryinstances' in node:
            geometry_instances = node['geometryinstances']
            if shape_instance in geometry_instances:
                instance = geometry_instances[shape_instance]
            else:
                instance = { }
                geometry_instances[shape_instance] = instance
        else:
            geometry_instances = { }
            node['geometryinstances'] = geometry_instances
            instance = { }
            geometry_instances[shape_instance] = instance
        return instance
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py/JsonAsset.__retrieve_shape_instance/original