def _ensure_tuple_or_list(arg_name, tuple_or_list):
    if not isinstance(tuple_or_list, (tuple, list)):
        raise TypeError('Expected %s to be a tuple or list. '
                        'Received %r' % (arg_name, tuple_or_list))
    return list(tuple_or_list)
Test to ensure the version can be replaced on the fly
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/_helpers.py/_ensure_tuple_or_list--crossover with--dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestCLIRouter.test_version