The answer to the question above is this: through interactions between teachers and students.
When we say gender identity, this is the identity that is being perceived by the person irregardless of their biological gender. This is when they feel their role and responsibilities in the society. So in order for this to be realized, interaction is really necessary in order for them to discover more about themselves.