def get_settings_priority(priority):
    if isinstance(priority, six.string_types):
        return SETTINGS_PRIORITIES[priority]
    else:
        return priority
Small helper function that looks up a given string priority in the
dataset/ETHPy150Open scrapy/scrapy/scrapy/settings/__init__.py/get_settings_priority