I want the drone to move to the target coordinates?

I received advice that to send the drone to the desired coordinates (latitude, longitude, or UTM), I need to convert the local position to the global position and then use it. I have written the px4_local_to_global node for this. However, the drone does not fly in the direction I want. I mainly use Python as my language. Can you show me examples implemented in Python or provide advice or examples of how to reach the global position configured in C++?