np.random.randomstate example
Example 1: pyserial example code
>>> import serial
>>> ser = serial.Serial('/dev/ttyUSB0') # open serial port
>>> print(ser.name) # check which port was really used
>>> ser.write(b'hello') # write a string
>>> ser.close() # close port
Example 2: google.protobuf.Struct example python
from google.protobuf.internal.well_known_types import Struct
s = Struct()
s.update({"key": "value"})
Example 3: gdal_polygonize example
gdal_polygonize.py myraster.tif -f "ESRI Shapefile" mylayer.shp