def METHOD_NAME(duthost, mg_facts):
    '''
        Installs static route for a port that is either a single-member lag or not part of a port channel.
    '''
    dst_port = None
    # Try to find a port with no port channel
    all_lag_members = []
    for lag_dict in mg_facts["minigraph_portchannels"].values():
        all_lag_members += lag_dict["members"]
    all_ports = mg_facts["minigraph_ports"].keys()
    non_lag_ports = set(all_ports) - set(all_lag_members)
    assert len(
        non_lag_ports) > 0, "Failed to find either a single-member lag or a non-lag port"
    dst_port = non_lag_ports.pop()
    if dst_port is None:
        # Only port-channels were found, so try to find a single-member LAG
        for lag_dict in mg_facts["minigraph_portchannels"].values():
            if len(lag_dict["members"]) == 1:
                dst_port = lag_dict["members"][0]
                break
    assert dst_port is not None, "Failed to find an invidivual port for testing"
    yield dst_port