def METHOD_NAME(
    search: Optional[str] = None, client: Optional[Client] = None
) -> view_pb.ListViewsResponse:
    """
    Lists all the views the user has access to
    Args:
        search (str, optional): The search parameter to filter list by. Defaults to None.
        client (Client, optional): The Kaskada Client. Defaults to kaskada.KASKADA_DEFAULT_CLIENT.
    Returns:
        view_pb.ListViewsResponse: Response from the API
    """
    try:
        client = get_client(client)
        req = view_pb.ListViewsRequest(
            search=search,
        )
        logger.debug(f"List Views Request: {req}")
        return client.view_stub.ListViews(req, metadata=client.get_metadata())
    except grpc.RpcError as e:
        handleGrpcError(e)
    except Exception as e:
        handleException(e)