How t add 2 hews in barplot

sns.barplot(x=‘day’, y=‘total_bill’, hue=‘smoker’,hue=‘sex’ data=tips_df);

I want to add plot total_bill and day as barplot, in which each bar has to split into two sections - smoker or non-smoker. and in each smoker bar, I want to split that into male and female

How to do.
I tried the above code, but it is showing the repeated argument error

Maybe you can try stacking the barplot with one category and splitting it with another.
you can create another datacolumn that is divided into 4 categories

SM (smoker male)
NSM (non-smoker male)
SF (smoker female)
NSF (non-smoker female)

and plot the bar graph using this column.