Default customization of choroplehts

How can I set choropleth’s properties by setting a default custom template?

For example, how can I set a default custom colorscale for choropleths?

Found. For example:

pio.templates["mytemplate"] = go.layout.Template(
    layout_colorscale_sequential = [
        [0.1, '#000000'],
        [0.5, '#aaaaaa'],
        [1, '#ffffff'],   
    ] # colorscale (e.g. used by choropleth). Use whatever list of tuples (value, color) that you like.
)
pio.templates.default = "mytemplate"