import gdsfactory as gf

gf.gpdk.PDK.activate()

c = gf.components.straight_piecewise(port_names=('o1', 'o2'), name='core').copy()
c.draw_ports()
c.plot()