<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def grids(fig=None, value='solid'):
 """Sets the value of the grid_lines for the axis to the passed value. The default value is `solid`. Parameters fig: Figure or None(default: None) The figure for which the axes should be edited. If the value is None, the current figure is used. value: {'none', 'solid', 'dashed'} The display of the grid_lines """


    if fig is None:
        fig = current_figure()
    for a in fig.axes:
        a.grid_lines = value