### Problem Description When `context` is `None`, it should not be used for assignment operations. ### Solution Adjusted the code logic to ensure that `context` is not `None` before performing any item assignment.