def METHOD_NAME(duthost, mg_facts, singleMemberPort):
    # Find 2 appropriate source ports, starting from the lowest IDs for testing
    # consistency, and avoiding the singleMemberPort
    ports_and_ids = mg_facts["minigraph_port_indices"].items()
    ports_and_ids.sort(key=lambda tup: tup[1])
    all_ports = [tup[0] for tup in ports_and_ids]
    # Remove extra ports that are in same lag
    for lag_dict in mg_facts["minigraph_portchannels"].values():
        for extra_lag_member in lag_dict["members"][1:]:
            all_ports.remove(extra_lag_member)
    all_ports.remove(singleMemberPort)
    # Find nearby ports
    nearby_ports = []
    single_slc = None
    for intf in all_ports:
        lanes = duthost.shell(
            'redis-cli -n 4 hget "PORT|{}" lanes'.format(intf))['stdout'].split(',')
        assert len(lanes) > 0, "Lanes not found for port {}".format(intf)
        slc = int(lanes[0]) >> 9
        if single_slc is None:
            single_slc = slc
            nearby_ports.append(intf)
        elif slc == single_slc:
            nearby_ports.append(intf)
            break
    assert len(nearby_ports) >= 2, "Failed to find 2 nearby ports, found {}".format(
        str(nearby_ports))
    nearby_port_id_1 = mg_facts["minigraph_port_indices"][nearby_ports[0]]
    nearby_port_id_2 = mg_facts["minigraph_port_indices"][nearby_ports[1]]
    yield (nearby_port_id_1, nearby_port_id_2)