import gdsfactory as gf

gf.gpdk.PDK.activate()

c = gf.components.hline(length=10, width=0.5, layer='WG', port_type='optical').copy()
c.draw_ports()
c.plot()