Refere Demo code here: https://github.com/anjangcp/GCP-Data-Engineering-Demo-Codes/blob/37178956af9ee6a029a97cff9b3e119149f4679c/Dataflow/dataflow_batch_demo.py
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.