import ast


def normalize_code(code: str | None) -> str | None:
    """Normalize code by parsing and unparsing to ignore quote style differences."""
    if code is None:
        return None
    return ast.unparse(ast.parse(code))
