code: def test_boolean_options(self):
      layer = Directions(
          self.start,
          self.end,
          avoid_ferries=True,
          avoid_highways=True,
          avoid_tolls=True,
          optimize_waypoints=True,
      )
      state = layer.get_state()
      assert state["avoid_ferries"]
      assert state["avoid_highways"]
      assert state["avoid_tolls"]
      assert state["optimize_waypoints"]
  
imports: import unittest
  import pytest
  import traitlets
  from ..directions import Directions, DEFAULT_STROKE_COLOR
label_desc: Use image node_id 10 for calling the DirectionsLayer obj's underlying member method code with example usage: obj.test_boolean_options() without return types