Help a mouse find cheese given only an API that tells you whether a move is valid (no grid or coordinates)
Asked in the coding stage. Implement the search using only movement operations and cheese detection after the API is initialized from the test representation.
find_cheese(edges, start, cheese) receives directed movement records [from_node, direction, to_node], a starting node ID, and a list of cheese node IDs. Each listed move is reversible using the opposite direction. Return a list of direction strings leading to any cheese node, or None if no cheese is reachable. Valid directions are U, R, D, and L.
def find_cheese(edges, start, cheese):