def is_same_base_url(url1, url2):
    url1 = urlsplit(url1)
    url2 = urlsplit(url2)
    return (url1.scheme==url2.scheme and
            url1.hostname==url2.hostname)
Unpack additions, since they may themselves be schemas.
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/is_same_base_url--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/tasks/action/task_action_manager_builder.py/TaskActionManagerBuilder._unpack_schema_additions