def METHOD_NAME(
    obj: xr.DataArray, store=None
) -> pd.DataFrame:
    if not isinstance(obj, xr.DataArray):
        raise TypeError("input must be a xr.DataArray")
    if isinstance(store, dict):
        store["coords"] = list(obj.coords.keys())
    index = obj.indexes[obj.dims[0]]
    columns = obj.indexes[obj.dims[1]] if len(obj.dims) == 2 else None
    return pd.DataFrame(obj.values, index=index, columns=columns)