def find_cost(room):
    if room and room.size:
        try:
            return exit_cost_map[room.size]
        except __HOLE__:
            exit_cost_map[room.size] = {'action': int(room_stamina * room.size / default_room_size),
                                        'stamina': int(room_action * room.size / default_room_size)}
            return exit_cost_map[room.size]
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/lpmud/env.py/find_cost