code: def test_defaults(self):
      layer = Directions(start=self.start, end=self.end)
      state = layer.get_state()
      assert state["start"] == self.start
      assert state["end"] == self.end
      assert state["waypoints"] == []
      assert not state["avoid_ferries"]
      assert not state["avoid_highways"]
      assert not state["avoid_tolls"]
      assert not state["optimize_waypoints"]
      assert state["show_markers"]
      assert state["show_route"]
      assert (
          state["stroke_color"].lower() == DEFAULT_STROKE_COLOR.lower()
      )
      assert state["stroke_opacity"] == 0.6
      assert state["stroke_weight"] == 6.0
  
imports: import unittest
  import pytest
  import traitlets
  from ..directions import Directions, DEFAULT_STROKE_COLOR
label_desc: Use image node_id 2 for calling the DirectionsLayer obj's underlying member method code with example usage: obj.test_defaults() without return types