def METHOD_NAME(A, rowOffset=0, colOffset=0):
    """Convert SparseMatrix to scipy.coo_matrix.
    Parameters
    ----------
    A: pg.matrix.SparseMapMatrix | pg.matrix.SparseMatrix
        Matrix to convert from.
    Returns
    -------
    mat: scipy.coo_matrix
        Matrix to convert into.
    """
    from scipy.sparse import coo_matrix
    vals = pg.Vector()
    rows = pg.core.IndexArray([0])
    cols = pg.core.IndexArray([0])
    if isinstance(A, pg.matrix.SparseMatrix):
        C = pg.matrix.SparseMapMatrix(A)
        C.fillArrays(vals=vals, rows=rows, cols=cols)
        rows += rowOffset
        cols += colOffset
        return coo_matrix((vals, (rows, cols)), shape=(A.rows(), A.cols()))
    elif isinstance(A, pg.matrix.SparseMapMatrix):
        A.fillArrays(vals, rows, cols)
        rows += rowOffset
        cols += colOffset
        return coo_matrix((vals, (rows, cols)), shape=(A.rows(), A.cols()))
    return coo_matrix(A)