def METHOD_NAME(obj: pd.DataFrame, store=None) -> list:
    if not isinstance(obj, pd.DataFrame):
        raise TypeError("input is not a pd.DataFrame")
    ret_dict = [obj.loc[i].to_dict() for i in obj.index]
    if isinstance(store, dict):
        store["index"] = obj.index
    return ret_dict