code: def test_stroke_options(self):
      layer = Directions(
          self.start,
          self.end,
          stroke_color=(10, 20, 30),
          stroke_opacity=0.2,
          stroke_weight=20,
      )
      state = layer.get_state()
      assert state["stroke_color"] == "rgb(10,20,30)"
      assert state["stroke_opacity"] == 0.2
      assert state["stroke_weight"] == 20
  
imports: import unittest
  import pytest
  import traitlets
  from ..directions import Directions, DEFAULT_STROKE_COLOR
label_desc: Use image node_id 15 for calling the DirectionsLayer obj's underlying member method code with example usage: obj.test_stroke_options() without return types