examples/research_projects/rag/distributed_pytorch_retriever.py/RagPyTorchDistributedRetriever/_infer_socket_ifname
class RagPyTorchDistributedRetriever:    def _infer_socket_ifname(self):
        addrs = psutil.net_if_addrs()
        # a hacky way to deal with varying network interface names
        ifname = next((addr for addr in addrs if addr.startswith("e")), None)
        return ifname