def move_port_to_zero(component: Component, port_name: str='o1'):
    'Return a container that contains a reference to the original component.\n    where the new component has port_name in (0, 0)\n    '
    if (port_name not in component.ports):
        raise ValueError(f'port_name = {port_name!r} not in {list(component.ports.keys())}')
    return move(component, (- component.ports[port_name].midpoint))
Return a container that contains a reference to the original component.
where the new component has port_name in (0, 0)
def move_port_to_zero(component: Component, port_name: str='o1'):
    'Return a container that contains a reference to the original component.\n    where the new component has port_name in (0, 0)\n    '
    if (port_name not in component.ports):
        raise ValueError(f'port_name = {port_name!r} not in {list(component.ports.keys())}')
    return move(component, (- component.ports[port_name].midpoint))