The kata “represents” a highly stylized fight, but you’re not supposed to “use” a kata in a fight in the sense of executing the entire sequence (that would be ridiculous). The use of kata is to develop focus, as a physical training tool, and to train your muscle memory for certain patterns of movement.