take for (~だと思う): I took her for a teacher, but she’s actually a lawyer. (彼女は先生だと思っていたが、実は弁護士だった)

I took her for a teacher, but she’s actually a lawyer.