def get_machine_zone():
 return get_metadata_path('instance/zone').split('/')[(-1)]

def get_machine_zone ( ) : return get_metadata_path ( 'instance/zone' ) . split ( '/' ) [ ( - 1 ) ]
returns the zone that the gce instance running this code is running within .