def _matchingString(constantString, inputString):
    if isinstance(constantString, bytes):
        otherType = constantString.decode("ascii")
    else:
        otherType = constantString.encode("ascii")
    if type(constantString) == type(inputString):
        return constantString
    else:
        return otherType
admin gallery should return 403 if user doesn't have permission.
dataset/ETHPy150Open twisted/twisted/twisted/python/compat.py/_matchingString--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_views.py/ImageViewsTest.test_admin_gallery_requires_permission