code: def test_print_grid_before_make_subplots():
      fig = Figure()
      with pytest.raises(Exception):
          fig.print_grid()
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_append_trace.py
imports: import pytest
  from plotly.graph_objs import Data, Figure, Layout, Scatter, Scatter3d, Scene, XAxis, YAxis
  from plotly.tests.utils import strip_dict_params
  import plotly.tools
  import copy
label_desc: Use image node_id 1 for calling a global function with example usage: test_print_grid_before_make_subplots() without return types