def METHOD_NAME(input: Any) -> Store:
    """Extracts a Legate store from any object
       implementing the legete data interface
    Args:
        input (Any): The input object
    Returns:
        Store: The extracted Legate store
    """
    if isinstance(input, Store):
        return input
    data = input.__legate_data_interface__["data"]
    field = next(iter(data))
    array = data[field]
    _, store = array.stores()
    return store