code: def test_defaults(self):
      fig = figure()
      assert fig._toolbar is not None
      assert fig._errors_box is not None
      assert fig.map_type == "ROADMAP"
      assert fig.mouse_handling == "COOPERATIVE"
      map_ = fig._map
      assert map_ is not None
      assert map_.initial_viewport == "DATA_BOUNDS"
  
imports: import unittest
  import traitlets
  from ..figure import figure, Figure, FigureLayout
  from ..maps import Map
  from ..toolbar import Toolbar
  from ..errors_box import ErrorsBox
label_desc: Use image node_id 1 for calling the TestFigureFactory obj's underlying member method code with example usage: obj.test_defaults() without return types