In the film, the character of Lo Pan, a powerful sorcerer, transforms the main character, Jack Burton, into a woman as part of a plan to use Jack's "yang" energy to revive his long-dead bride. This is a classic example of a sexist man being forced to experience life from a woman's perspective, highlighting the gender roles and power dynamics of the time.
While this isn't the only movie with a similar theme, "Big Trouble in Little China" is perhaps the most well-known example. Let me know if you have any other details about the film that might help me pinpoint the exact movie you're thinking of!