code: def gridon():
      """
      Template to enable x and y-grid by default
      """
      # Create blank template
      template = Template()
      template.layout.xaxis.showgrid = True
      template.layout.xaxis.title.standoff = 15
      template.layout.yaxis.showgrid = True
      template.layout.yaxis.title.standoff = 15
  
      # Automargin for pie chart
      template.data.pie = [{"automargin": True}]
  
      return template
  
file_path: plotly.py/packages/python/plotly/templategen/definitions.py
imports: from plotly.graph_objs.layout import Template
  from templategen.utils import initialize_template
  from .utils.colors import colors
  import colorcet
  import plotly.express
label_desc: Use image node_id 10 for calling a global function with example usage: gridon() and returns: template