import gdsfactory as gf

gf.gpdk.PDK.activate()

c = gf.components.optimal_hairpin(width=0.2, pitch=0.6, length=10, turn_ratio=4, num_pts=50, layer=(1, 0)).copy()
c.draw_ports()
c.plot()