@pytest.fixture(scope='session')
def docker_ip_address(docker):
    # Fallback docker daemon bridge name
    ifname = 'docker0'
    try:
        for network in docker.networks():
            _ifname = docker.networks()[0]['Options'].get(
                'com.docker.network.bridge.name')
            if _ifname is not None:
                ifname = _ifname
                break
    except libdocker.errors.InvalidVersion:
        pass
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    return socket.inet_ntoa(fcntl.ioctl(
        s.fileno(),
        0x8915,  # SIOCGIFADDR
        struct.pack('256s', ifname[:15].encode('utf-8')))[20:24])
A main function for tools that read RDF from files given on commandline
dataset/ETHPy150Open aio-libs/aiokafka/tests/conftest.py/docker_ip_address--crossover with--dataset/ETHPy150Open RDFLib/rdfextras/rdfextras/utils/cmdlineutils.py/main