Write a function in Python that satisfies the following specification. You may access attributes directly rather than define getter/setter methods. You do not need to implement the sparse matrix itself, only the method. (Use "Preformatted" text style.).