code: def test_with_toolbar(self):
      toolbar = Toolbar()
      fig = Figure(_map=Map(), _toolbar=toolbar)
      assert fig._toolbar == toolbar
  
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 2 for calling the TestFigure obj's underlying member method code with example usage: obj.test_with_toolbar() without return types