def read_from_which_host(
        client,
        pref,
        tag_sets=None,
):
    db = client.pymongo_test

    if isinstance(tag_sets, dict):
        tag_sets = [tag_sets]
    if tag_sets:
        tags = tag_sets or pref.tag_sets
        pref = pref.__class__(tags)

    db.read_preference = pref

    cursor = db.test.find()
    try:
        try:
            next(cursor)
        except StopIteration:
            # No documents in collection, that's fine
            pass

        return cursor.address
    except AutoReconnect:
        return None
:returns: A vector of integers corresponding to the (out)degree sequence.
dataset/ETHPy150Open mongodb/mongo-python-driver/test/utils.py/read_from_which_host--crossover with--dataset/ETHPy150Open charanpald/APGL/apgl/generator/ConfigModelGenerator.py/ConfigModelGenerator.getOutDegSequence