Identically distributed implies that each random variable has the same probability distribution as the others. Independent means that all the random variables are mutually independent. The notion of dependent but identically distributed random variables is used in statistical literature (for example here).
However, if the variables are not independent, then the distribution of one variable is affected by other variables. If this is the case, then how can they be identically distributed? It seems like random variable cannot be dependent and identically distributed at the same time.
What am I getting wrong?
Edit: After looking at examples in the comments, I realized I did not ask the right question. I meant a sample, and not random variables. We known a sample can be drawn i.i.d from a distribution. What does it mean for a sample to be identically distributed but not independent.