save png or tif file of a given lattitude and longitude using google earth engine and wrtie command to sace it to python api write full working code
import ee ee.Initialize() def function(lat, lon): point = ee.Geometry.Point(lon, lat) collection = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA') image = collection.filterBounds(point).sort('DATE', False).mosaic().clip(point) url = image.getDownloadURL({ 'name': 'image', 'scale': 30, 'crs': 'EPSG:4326', 'region': point.getInfo()['coordinates'] }) return url function(1, 2)